- 大規模言語モデル
- API移行ガイド
- 独占機能
- モデルサポート
- OpenAI
- Anthropic
- Gemini
- 中国モデル
- Chat(Baidu ERNIE)
- Chat(Tongyi Qianwen)
- Chat(Tongyi Qianwen-VL)
- Chat(Tongyi Qianwen-OCR)
- Chat(ZHIPU GLM-4)
- Chat(ZHIPU GLM-4V)
- Chat(Baichuan AI)
- Chat(Moonshot kimi AI)
- Chat(Moonshot kimi AI-Vision)
- Chat(01.AI)
- Chat(01.AI-VL)
- Chat(DeepSeek)
- Chat(DeepSeek-VL2)
- Chat(ByteDance Doubao)
- Chat(ByteDance Doubao-Vision)
- Chat(ByteDance Doubao Image Generation)
- Chat(Stepfun)
- Chat (Stepfun Multimodal)
- Chat(iFLYTEK Spark)
- Chat(SenseTime)
- Chat(Minimax)
- Chat(Tencent Hunyuan)
- SiliconFlow
- PPIO
- オープンソースモデル
- 専門モデル
- その他のモデル
- 画像生成
- 統一インターフェース
- GPT-Image-1
- DALL.E
- Stability.ai
- Midjourney
- Midjourney-Relax
- 302.AI
- SDXL(画像生成)
- SDXL-Lora(画像生成-Lora)
- SDXL-Lightning(高速画像生成)
- SDXL-Lightning-V2(高速画像生成-V2)
- SDXL-Lightning-V3(高速画像生成-V3)
- SD3(画像生成-SD3)
- SD3(画像生成-SD3-v2)
- Aura-Flow(画像生成)
- Kolors(画像生成-Kolors)
- Kolors(参考画像生成-KLING)
- QRCode(Art QR code 生成)
- Lora(画像生成-Lora)
- SD-3.5-Large(画像生成)
- SD-3.5-Large-Turbo(画像生成)
- SD-3.5-Medium(画像生 成)
- Lumina-Image-V2(画像生成)
- Playground-v25(画像生成)
- Omnigen-V1(画像生成)
- Glif
- Flux
- Ideogram
- Recraft
- Luma
- Doubao
- Minimax
- ZHIPU
- Baidu
- Hidream
- Bagel
- SiliconFlow
- Higgsfield
- 画像処理
- 302.AI
- Upscale(画像拡大)
- Upscale-V2(画像拡大-V2)
- Upscale-V3(画像拡大-V3)
- Upscale-V4(画像拡大-V4)
- Super-Upscale(超画像拡大)
- Super-Upscale-V2(超画像拡大-V2)
- Face-upscale(肖像画の画像拡大)
- Colorize(白黒写真に色を付ける)
- Colorize(白黒写真に色を付ける-V2)
- Removebg(背景を削除)
- Removebg-V2(背景を削除-V2)
- Removebg-V3(背景を削除-V3)
- Inpaint(画像修正)
- Erase(オブジェクトの削除)
- Face-to-many(肖像画画像の様式化)
- Llava(画像認識)
- Relight(補助照明)
- Relight-background(二次光の背景合成)
- Relight-V2(補助照明-V2)
- Face-swap-V2(AIフェイススワップV2)
- Fetch(タスク取得)
- HtmltoPng(HTMLをPNG形式に変換)
- SvgToPng(SVGをPNG形式に変換)
- image-translate(画像翻訳)
- image-translate-query(画像翻訳結果)
- image-translate-redo(画像翻訳修正)
- Flux-selfie(スタイリッシュな自撮り写真)
- Trellis(画像を3Dモデルに変換)
- Pose-Transfer(人物のポーズ変換)
- Pose-Transfer(人物のポーズ変換結果)
- Virtual-Tryon(バーチャル試着)
- Virtual-Tryon(バーチャル試着結果)
- Denoise(AIノイズ除去)
- Deblur(AIによるぼかし除去)
- 302.AI-ComfyUI
- Vectorizer
- Stability.ai
- Fast Upscale(画像の高速拡大)
- Creatice Upscale (創造的な画像拡大)
- Conservative Upscale(保守的な画像拡大)
- Fetch Creatice Upscale(超高解像度画像拡大)
- Erase(物体除去)
- Inpaint(画像修正)
- Outpaint(画像拡張)
- Search-and-replace (内容置換)
- Search-and-recolor (内容再着色)
- Remove-background(背景除去)
- Sketch (スケッチから画像)
- Structure(画像生成)
- Style (スタイルの一貫性)
- Replace-Background(背景を変更)
- Stable-Fast-3D(画像から3Dモデルを変換)
- Stable-Point-3D(画像から3Dモデルへの変換-新バージョン)
- Glif
- Clipdrop
- Recraft
- BRIA
- Remove Background(背景を削除)
- Blur Background(背景をぼかす)
- Generate Background(背景合成)
- Erase Foreground(前景消去)
- Eraser(選択部分消去)
- Expand Image(画像拡張)
- Increase Resolution(解像度の拡大)
- Crop(画像を切り抜く)
- Cutout(商品画像を切り抜き)
- Packshot(クローズアップ写真)
- Shadow (影を追加する)
- Scene (シーン生成)
- Caption(画像の説明)
- Register(画像アップロード)
- Mask(画像分割)
- Presenter info (顔の解析)
- Modify Presenter(顔の修正)
- Delayer Image(画像をPSDに変換)
- Flux
- Hyper3D
- Tripo3D
- FASHN
- Ideogram
- Doubao
- Kling
- StepFun
- Bagel
- 映像生成
- 統一インターフェース
- 302.AI
- Stable Diffusion
- Luma AI
- Runway
- Kling
- 302フォーマット
- Txt2Video(文字から映像を生成-1.0-クイック-5秒)
- Txt2Video_HQ(文字から映像を生成 1.5- HD - 5秒)
- Txt2Video_HQ(文字から映像を生成 1.5- HD - 10秒)
- Image2Video(画像から映像を生成 1.0- クイック - 5秒)
- Image2Video(画像から映像を生成 1.0- クイック - 10秒)
- Image2Video(画像から映像を生成 1.5- クイック - 5秒)
- Image2Video(画像から映像を生成 1.5- クイック - 10秒)
- Image2Video_HQ(画像から映像を生成 1.5- HD - 5秒)
- Image2Video_HQ(画像から映像を生成 1.5- HD - 10秒)
- Extend_Video(映像延長)
- Txt2Video(テキストから動画生成1.6 - スタンダード - 5秒)
- Txt2Video(テキストから動画生成1.6 - スタンダード - 10秒)
- Txt2Video(テキストから動画生成1.6 - HD - 5秒)
- Image2Video(画像から映像を生成 1.6- スタンダード- 5秒)
- Txt2Video(テキストから動画生成1.6 - HD - 10秒)
- Image2Video(画像から映像を生成 1.6- スタンダード- 10秒)
- Image2Video(画像から映像を生成 1.6- HD- 5秒)
- Txt2Video(テキストから動画生成2.0 – HD – 5秒)
- Image2Video(画像から動画生成2.0 – HD – 5秒)
- Image2Video(画像から動画生成2.0 – HD – 10秒)
- Image2Video(画像から映像を生成 1.6- HD- 10秒)
- Image2Video (マルチ画像参照)
- Image2Video(マルチ画像参照)
- Image2Video(イメージビデオ 2.1~5秒)
- Image2Video(イメージビデオ 2.1~10秒)
- Image2Video(イメージビデオ 2.1-HD-5秒)
- Image2Video(イメージビデオ 2.1-HD-10秒)
- Fetch(タスク取得)
- 公式フォーマット
- 302フォーマット
- Minimax
- Pika
- PixVerse
- Genmo
- Hedra
- Haiper
- Sync.
- Lightricks
- Hunyuan
- Vidu
- Tongyi Wanxiang
- SiliconFlow
- Jimeng
- CogVideoX
- Kunlun Tech
- Higgsfield
- Chanjing
- Midjourney
- 音声・映像処理
- 情報処理
- 統合検索API
- 302.AI
- 管理バックエンド
- 情報検索
- Xiaohongshu_Search(小紅書探索メモ)
- Xiaohongshu_Note(小紅書からメモを入手)
- Get_Home_Recommend(小紅書のホームページおすすめ)
- Tiktok_Search(Tiktok映像検索)
- Douyin_Search(Douyin映像検索)
- Twitter_Search(Xの検索内容)
- Twitter_Post(Xでユーザーの投稿を取得)
- Twitter_User(Xでユーザーの情報を取得)
- Weibo_Post(微博でユーザーの投稿を取得)
- Search_Video(YouTubeビデオを検索)
- Youtube_Info(Youtubeゲットビデオ)
- Youtube_Subtitles(Youtube字幕を取得する)
- Bilibili_Info(Bilibili動画情報を取得する)
- MP_Article_List(WeChat公式アカウントの記事リストを取得する)
- MP_Article(微信公众号の記事を取得)
- ファイル処理
- コード実行
- リモートブラウザ
- Paper2Code
- Paper2Poster
- Tavily
- SearchAPI
- Search1API
- Doc2x
- Glif
- Jina
- DeepL
- Exa
- Bocha AI
- RSSHub
- Firefly card
- Youdao
- Mistral
- Firecrawl
- RAG関連
- ツールAPI
- ヘルプセンター
Portrait(結果取得)
POST
/doubao/drawing/portrait_result
Request
Query Params
response_format
string
optional
Example:
url
Header Params
Authorization
string
optional
Example:
Bearer {{YOUR_API_KEY}}
Body Params application/json
task_id
string
required
req_json
string
optional
現在、ウォーターマーク設定および画像リンク形式での返却可否をサポートしており、返却結果に追加できます。
ウォーターマーク関連情報
logo_info オプション LogoInfo ウォーターマーク情報
add_logo Boolean いいえ ウォーターマークを追加するかどうか。Trueで追加、Falseで追加しません。デフォルトは追加しません。
position Int いいえ ウォーターマークの位置、値は以下の通りです:
0-右下
1-左下
2-左上
3-右上
デフォルトは0
language Int いいえ ウォーターマークの言語、値は以下の通りです:
0-中国語(AI生成)
1-英語(Generated by AI)
デフォルトは0
Example
{
"task_id": "6682608976809320374",
"req_json": "{\"logo_info\":{\"add_logo\":true,\"position\":0,\"language\":0,\"opacity\":0.3,\"logo_text_content\":\"这里是明水印内容\"},\"return_url\":true}"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.302.ai/doubao/drawing/portrait_result?response_format=url' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"task_id": "6682608976809320374",
"req_json": "{\"logo_info\":{\"add_logo\":true,\"position\":0,\"language\":0,\"opacity\":0.3,\"logo_text_content\":\"这里是明水印内容\"},\"return_url\":true}"
}'
Responses
🟢200成功
application/json
Body
code
integer
required
data
object
required
algorithm_base_resp
object
required
binary_data_base64
array[string]
required
image_urls
array[string]
required
resp_data
string
required
comfyui_cost
string
required
image_output
null
required
log_output
string
required
status
string
required
message
string
required
request_id
string
required
status
integer
required
time_elapsed
string
required
Example
{
"code": 10000,
"data": {
"algorithm_base_resp": {
"status_code": 0,
"status_message": ""
},
"binary_data_base64": [],
"image_urls": [
"https://file.302.ai/gpt/imgs/20250704/294e21f5c461495a9d1d11328691a2d6.png"
],
"resp_data": "{\"log_output\": \"{\\\"infer_ctx\\\":{\\\"algorithm_key\\\":\\\"high_aes_scheduler_general_v3.0_18b\\\",\\\"app_key\\\":\\\"2101629922\\\",\\\"created_at\\\":\\\"2025-07-04T13:37:22.292838105+08:00\\\",\\\"generate_id\\\":\\\"\\\",\\\"log_id\\\":\\\"20250704133711F5C61AE75EC8D72B6490\\\",\\\"params\\\":{\\\"app_id\\\":\\\"\\\",\\\"aspect_ratio\\\":\\\"\\\",\\\"common_params\\\":\\\"\\\",\\\"ddim_steps\\\":6,\\\"edit_session_id\\\":\\\"\\\",\\\"fps\\\":0,\\\"frames\\\":0,\\\"group_name\\\":\\\"\\\",\\\"height\\\":1327,\\\"input_image_url\\\":\\\"\\\",\\\"is_only_sr\\\":false,\\\"is_pe\\\":true,\\\"llm_result\\\":\\\"\\\",\\\"media_source\\\":\\\"\\\",\\\"n_samples\\\":0,\\\"negative_prompt\\\":\\\"text,国旗,national flag,Low resolution, blurry, the worst quality,假小子,半男半女,小红书水印\\\",\\\"ori_prompt\\\":\\\"一张东亚人种年轻男性的特写肖像图,面容清秀。 长出满脸的胡子\\\",\\\"origin_request_id\\\":\\\"\\\",\\\"output_height\\\":1327,\\\"output_width\\\":1327,\\\"pe_result\\\":\\\"特写肖像,暖色调,一位东亚人种年轻男性,面容清秀,穿着衬衫,长出满脸的胡子,皮肤细腻光滑,胡子浓密,近景,柔和光影。\\\",\\\"predict_tags_result\\\":\\\"\\\",\\\"rephraser_result\\\":\\\"\\\",\\\"req_key\\\":\\\"high_aes_general_v30l\\\",\\\"rescale\\\":0,\\\"resolution\\\":\\\"\\\",\\\"scale\\\":0,\\\"seed\\\":366947886,\\\"shift\\\":0,\\\"sr_img2img_fix_steps\\\":0,\\\"sr_scale\\\":0,\\\"sr_strength\\\":0,\\\"sr_upscaler\\\":\\\"\\\",\\\"steps\\\":0,\\\"strength\\\":0,\\\"trace_id\\\":\\\"\\\",\\\"translate_negative_prompt\\\":\\\"text,国旗,national flag,Low resolution, blurry, the worst quality,假小子,半男半女,小红书水印\\\",\\\"translate_prompt\\\":\\\"一张东亚人种年轻男性的特写肖像图,面容清秀。 长出满脸的胡子\\\",\\\"use_pre_llm\\\":false,\\\"use_prompt_aug\\\":false,\\\"use_sr\\\":false,\\\"version_id\\\":\\\"\\\",\\\"video_url\\\":\\\"\\\",\\\"vlm_edit\\\":\\\"\\\",\\\"vlm_input\\\":\\\"\\\",\\\"vlm_output\\\":\\\"\\\",\\\"width\\\":1327},\\\"request_id\\\":\\\"433e25f298d697303ce36a7ae51c5ed51e6e5220c9dc0e2cde30690d5f91f692\\\",\\\"session_id\\\":\\\"\\\",\\\"time_stamp\\\":\\\"1751607442\\\"},\\\"llm_result\\\":\\\"特写肖像,暖色调,一位东亚人种年轻男性,面容清秀,穿着衬衫,长出满脸的胡子,皮肤细腻光滑,胡子浓密,近景,柔和光影。\\\",\\\"pe_result\\\":\\\"特写肖像,暖色调,一位东亚人种年轻男性,面容清秀,穿着衬衫,长出满脸的胡子,皮肤细腻光滑,胡子浓密,近景,柔和光影。\\\",\\\"predict_tags_result\\\":\\\"\\\",\\\"rephraser_result\\\":\\\"\\\",\\\"request_id\\\":\\\"433e25f298d697303ce36a7ae51c5ed51e6e5220c9dc0e2cde30690d5f91f692\\\",\\\"vlm_result\\\":\\\"\\\"}\", \"image_output\": [\"uri://binary_data?index=0\"], \"comfyui_cost\": 21.3237}",
"comfyui_cost": "",
"image_output": null,
"log_output": "",
"status": "done"
},
"message": "Success",
"request_id": "20250704135505CC9722EC8585EC323E03",
"status": 10000,
"time_elapsed": "925.911462ms"
}
Modified at 2025-07-07 05:42:53