302.AI API Document
Home
Pricing
Dashboard
Log
302.AI
Copy Page
Default module
302.AI API Integration Skill
Large Language Model
API Migration Guide
Exclusive Feature
Search Online
Chat(Search online)
Depth-First Search
Chat(Depth-First Search)
Image Analysis
Chat(Image analysis)
Reasoning mode
Chat(Reasoning mode)
Link Parsing
Chat(Link Parsing)
Tool Invocation
Chat(tool invocation)
Long-term memory (Beta)
Memobase
User Management
Create User
Get User
Update User
Delete User
Data Management
Insert Data
Get Datas
Get Data
Delete Data
Memory Management
Flush Buffer (Generate Memory)
Get User Profile (Get Memory)
Delete User Profile (Delete Memory)
Chat (Long-term Memory)
Simplified API
Chat (Simplified API)
Asynchronous call
Asynchronous request to chat
Asynchronously retrieve/get results
Claude Format
Messages(Claude Format)
Claude Code
1-minute quick configuration
Claude Model 30% Discount Area
Claude Code Dedicated URL Path
Claude Code Dedicated Model Name
30% Discount Area for Chinese-made Models
glm-for-coding (Zhipu)
kimi-for-coding(Moonlight)
Any model is compatible with Claude format
Messages (Claude Format)
Claude Code Sandbox
Introduction to Claude Code Sandbox
Third-Party Client Access Tutorial
Update Log
Sandbox Management
Create Claude-Code Sandbox
Query the sandbox list under the ApiKey
Delete Sandbox
Update sandbox configuration
Add MCP to the sandbox
Query all sessions of the sandbox
Add/modify conversation notes
Delete the specified session and all files in the corresponding working directory
Sandbox Interaction
Call Claude-Code (OpenAI format)
Execute instructions using prompt (OpenAI format)
Call Claude-Code (Claude format)
Execute instructions using prompt words (Claude format)
Execute the sandbox command instruction
File-related
View the file list under the sandbox
Download file (supports batch download)
Upload files to the sandbox (JSON)
Upload files to the inside of the sandbox (from-data)
File operation interface
Deploy the project
Skills-related
Model Support
Models (List models)
Status(Model Status)
OpenAI
Chat(Talk)
Chat(Streamed return.)
Chat (Image Analysis)
Chat (Structured Output)
Chat (function call)
Chat (gpt-4-plus image analysis)
Chat (gpt-4-plus image generation)
Chat(gpt-4o-image-generation modify image)
Chat (gpts model)
Chat (chatgpt-4o-latest)
Chat (o1 Series Model)
Chat (o3 Series Model)
Chat(o4 Series)
Chat(gpt-4o audio model)
Responses(Talk)
Responses(Deep-Research)
Responses(Codex Cli专用)
Anthropic
Chat(Talk)
Chat(Analyze image)
Chat(Function Call)
Messages(Original format)
Messages(Function Call)
Messages(Thinking mode)
Messages(128k output)
Messages (for Claude Code)
Gemini
Official Format
v1beta (Official Format - Chat)
v1beta (Official Format - Text-to-Image)
v1beta (Official Format - Image Editing)
v1beta (Official Format - Streaming)
Chat(Talk)
Chat(Analyze image)
Chat(Image Generation)
China AI Model
Chat (Baidu ERNIE)
Chat (Tongyi Qianwen)
Chat (Tongyi Qianwen-VL)
Chat(Tongyi Qianwen-OCR)
Chat (Zhipu GLM)
Chat (Zhipu GLM Multimodal)
Chat (Baichuan AI)
Chat (Moonshot AI)
Chat (Moonshot 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
Chat(SiliconFlow)
PPIO
Chat(PPIO)
SophNet
Chat(SophNet)
Open Source Model
Chat(LLaMA4)
Chat(LLaMA3.3)
Chat(LLaMA3.2 multimodal)
Chat(LLaMA3.1)
Chat(Mistral)
Chat(Pixtral-Large-2411multimodal)
Chat(Gemma-7B、Gemma-3-27b-it)
Chat(Gemma2-9B)
Chat(Command R+)
Chat(Qwen2)
Chat(Qwen2.5)
Chat(Qwen2.5-VL)
Chat(Qwen3)
Chat(Llama-3.1-nemotron)
Chat(QwQ-32B、QwQ-Plus、QwQ-32B-Preview)
Chat(LongCat-Flash-Chat)
Chat(KAT-Coder)
Expert Model
Chat(WiseDiag Medical Model)
Chat (Xuanyuan Financial Model)
Chat (Farui Legal Model)
Chat (Alibaba Math Model)
Chat(Perplexity search)
Chat(Alibaba Tongyi Translation Model)
Other Models
Chat(grok-3)
Chat(grok-2)
Chat(grok-2-vision)
Chat(Nova)
Chat(v0)
Chat (UniFuncs Deep Research)
Async Get Result
Image Generation
Unified interface
Explanation
302 Format V1
Image Generation (302 Format)
302 Format V2
Synchronous Image Generation (302 Format)
Asynchronous Image Generation (302 Format)
Webhook Request Data Example
Asynchronous Image Generation Result Fetch
Openai Format
Image Generation (OpenAI Format)
Image Editing (OpenAI Format)
GPT-Image Series
Generations(Image generation)
Edits(Modify Image)
Asynchronously fetch images
DALL.E
Generations(DALL·E 3 and DALL·E 2)
Edits(DALL·E 2)
Variations(DALL·E 2)
Google
Nano-Banana-2
gemini-3.1-flash-image-preview (Original Format - Text to Image)
gemini-3.1-flash-image-preview (Original Format - Image Editing)
gemini-3.1-flash-image-preview (Chat Format)
gemini-3.1-flash-image-preview (Sync Per-Request - Text to Image)
gemini-3.1-flash-image-preview (Sync Per-Request - Image Editing)
gemini-3.1-flash-image-preview (Async Per-Request - Text to Image)
gemini-3.1-flash-image-preview (Async Per-Request - Image Editing)
gemini-3.1-flash-image-preview (Async Get Result)
Nano-Banana-Pro
gemini-3-pro-image-preview (Original Format - Text-to-Image)
gemini-3-pro-image-preview (Original Format - Image Editing)
gemini-3-pro-image-preview (Chat format)
gemini-3-pro-image-preview (simultaneous pay-per-use - text-to-image) Copy
gemini-3-pro-image-preview (simultaneous pay-per-use - image editing) Copy
gemini-3-pro-image-preview (asynchronous pay-per-use - text-to-image)
gemini-3-pro-image-preview (asynchronous pay-per-use - image editing)
gemini-3-pro-image-preview (asynchronous result retrieval)
Nano-Banana
gemini-2.5-flash-image (Original Format - Text-to-Image)
gemini-2.5-flash-image(Original Format - Image Editing)
gemini-2.5-flash-image (Pay-per-Use - Text-to-Image)
gemini-2.5-flash-image-edit (Pay-per-Use - Image Editing)
gemini-2.5-flash-image (asynchronous per-request billing - text-to-image)
gemini-2.5-flash-image-edit (asynchronous per-request billing - image editing)
gemini-2.5-flash-image (asynchronous result retrieval)
Imagen
Imagen-4-Preview-Ultra (Image Generation)
Imagen-4-Preview-Fast (Image Generation)
Imagen-4-Preview (Image generated)
Imagen-3 (Image generated)
Imagen-3-Fast (Image generated)
Stability.ai
Text-to-image (Image Generation-V1)
Generate (Image Generation-SD2)
Generate (Image Generation-SD3-Ultra)
Generate (Image Generation-SD3)
Generate(Image Generation-SD3.5-Large)
Generate(Image Generation-SD3.5-Medium)
Generate(Image to Image-SD3)
Generate(Image to Image-SD3.5-Large)
Generate(Image to Image-SD3.5-Medium)
Midjourney
Imagine
Action
Blend
Describe
Modal
Fetch
Cancel
Midjourney-Relax
Imagine
Action
Blend
Describe
Modal
Fetch
Cancel
Midjourney-Turbo
Imagine
Action
Blend
Describe
Modal
Fetch
Cancel
302.AI
Z-Image(Image Generation - Tongyi)
Z-Image-Turbo (Image Generation - Tongyi)
SDXL
SDXL-Lora
SDXL-Lightning
SDXL-Lightning-V2
SDXL-Lightning-V3
SD3
SD3-V2
Aura-Flow
Kolors
Kolors(Reference Image Generation-KLING)
QRCode Generation
Lora
Lora(Get task result)
SD-3.5-Large
SD-3.5-Large-Turbo
SD-3.5-Medium
Lumina-Image-V2(Image generated)
Playground-v25(Image generated)
Omnigen-V1(Image generated)
Qwen-Image(image generation)
Qwen-Image-2512 (Image Generation)
Qwen-Image-Lora (LoRA image generation)
Qwen-Image-Lora-Trainer (LoRA training)
Qwen-Image-Lora-Trainer (asynchronous result retrieval)
Glif
Glif(Claude+SD3)
Glif (Text-to-Sticker)
Glif (Text-to-Graffiti)
Glif (Text-to-Wojak Comic)
Glif (Text-to-Lego)
Flux
Official API
Generate
Finetune
Result
Flux-2-Max (generates images)
Flux-2-Max (Query Task)
Flux-2-Flex (generates images)
Flux-2-Flex (Query Task)
Flux-2-Pro (generates images)
Flux-2-Pro (query task)
Flux-Ultra(v1.1)
Flux-Pro(v1.1)
Flux-Pro
Flux-Dev
Flux-Schnell
Flux-Realism
Flux-Lora
Flux-General
Flux-General-Inpainting(Advanced Customization)
Flux-Lora-Training(Training Lora)
Flux-Lora-Training(Fetch Results Asynchronously)
Flux-1-Krea(Image Generation)
Flux-1-Krea-Redux(Image-to-Image Generation)
Flux-1-SRPO(Image-to-Image Generation)
Flux-2-Klein-9b (generate or edit images)
Flux-2-Klein-9b (query task)
Flux-2-Klein-4b (generate or edit images)
Flux-2-Klein-4b (query task)
Ideogram
Generate(subject reference)
Generate(Text-to-image V3)
Generate(Text-to-image)
Recraft
Recraft-V3(Text to Image)
Create-Style(Customized Styles)
Recraft-20B(Image Generation)
Luma
Luma-Photon(Image generation)
Luma-Photon-Flash(Fast image generation)
Doubao
Generations(Seedream 4.5)
Generations(Seedream 4.0)
Generations(Seedream 3.0)
Generations(SeedEdit 3.0)
Drawing(Doubao image generation)
Minimax
image(Text-to-Image Generation)
ZHIPU
image(Text-to-Image Generation)
Baidu
iRAG(Text-to-Image Generation)
Hidream
Hidream-i1-full(Advanced Version)
Hidream-i1-dev(Intermediate Version)
Hidream-i1-fast(Entry-Level Version)
Bagel
Bagel(Image generation)
SiliconFlow
Create Image Generation Request
Higgsfield
Official Format
Soul (Text-to-Image)
Fetch (Get task results)
Styles (Get Style List)
Soul (Text to Image)
Character (Generate Character)
Apps (Image-to-Image)
Fetch (Retrieve task results)
Kling
302 format
Images-Generations(o1-Images-Generations)
Fetch(Get task results)
Images-Generations(o3 Generate images)
Images-Generations (Image Generation)
Fetch (Get Generated Image Task Result)
Tongyi Wanxiang
Qwen-Image-Max (text-to-image)
Qwen-Image (Alibaba Cloud Deployment)
T2I (Text-to-Image Alibaba Cloud)
Wan2.6-Image (Image Generation and Editing)
Tasks (Retrieve Task Results)
Vidu
Reference to Image (Reference2Image)
Fetch V2 (Fetch task results)
Wavespeed
Universal Interface
Wavespeed Generation Task
Kling获取任务结果
alibaba/wan-2.5/text-to-image
bytedance/seedream-v4/sequential
bytedance/dreamina-v3.0/text-to-image
bytedance/dreamina-v3.1/text-to-image
bytedance/seedream-v3.1
bytedance/waver-1.0
bytedance/seedream-v4
google/gemini-2.5-flash-image-preview/text-to-image
google/imagen4
google/nano-banana/text-to-image
google/imagen4-fast
google/imagen4-ultra
google/imagen3-fast
google/gemini-2.5-flash-image/text-to-image
google/imagen3
ideogram-ai/ideogram-v2a-turbo
ideogram-ai/ideogram-v3-turbo
ideogram-ai/ideogram-v3-balanced
ideogram-ai/ideogram-v2
ideogram-ai/ideogram-v3-quality
leonardoai/phoenix-1.0
leonardoai/lucid-origin
luma/photon-flash
luma/photon
openai/dall-e-2
openai/dall-e-3
openai/gpt-image-1/text-to-image
openai/gpt-image-1-high-fidelity
reve/text-to-image
recraft-ai/recraft-v3
recraft-ai/recraft-v3-svg
recraft-ai/recraft-20b-svg
runwayml/gen4-image
recraft-ai/recraft-20b
stability-ai/stable-diffusion-3.5-large-turbo
stability-ai/stable-diffusion-3.5-medium
stability-ai/stable-diffusion-3.5-large
stability-ai/stable-diffusion-3
stability-ai/stable-diffusion
stability-ai/sdxl
stability-ai/sdxl-lora
wavespeed-ai/any-llm/vision
wavespeed-ai/flux-dev-lora
wavespeed-ai/flux-dev-ultra-fast
wavespeed-ai/qwen-image/text-to-image
wavespeed-ai/wan-2.2/text-to-image-lora
wavespeed-ai/hunyuan-image-3
wavespeed-ai/wan-2.2/text-to-image-realism
wavespeed-ai/flux-dev
wavespeed-ai/qwen-image/text-to-image-lora
wavespeed-ai/flux-dev-lora-ultra-fast
wavespeed-ai/flux-1-srpo
wavespeed-ai/flux-srpo
wavespeed-ai/female-human
wavespeed-ai/hunyuan-image-2.1
wavespeed-ai/chroma
wavespeed-ai/qwen-image/edit-plus-lora
wavespeed-ai/wan-2.2/i2v-5b-720p
wavespeed-ai/flux-krea-dev-lora
wavespeed-ai/flux-1.1-pro-ultra
wavespeed-ai/flux-1.1-pro
wavespeed-ai/flux-2-pro/text-to-image
wavespeed-ai/flux-2-flex/text-to-image
wavespeed-ai/flux-2-dev/text-to-image
wavespeed-ai/flux-2-pro/edit
wavespeed-ai/flux-2-flex/edit
wavespeed-ai/flux-2-dev/edit
wavespeed-ai/neta-lumina
wavespeed-ai/wan-2.1/text-to-image-lora
wavespeed-ai/wan-2.1/text-to-image
wavespeed-ai/flux-schnell
wavespeed-ai/flux-kontext-max/text-to-image
wavespeed-ai/flux-kontext-pro/text-to-image
bytedance/seedream-v3
wavespeed-ai/imagen4
wavespeed-ai/step1x-edit
wavespeed-ai/hidream-i1-dev
wavespeed-ai/hidream-i1-full
runwayml/gen4-image-turbo
Wavespeed Retrieval Task
kwaivgi/kling-image-o3/text-to-image
Kling Get task results
Grok
Grok-Imagine-Image(Image generation)
Grok-Imagine-Image-Edit(Image modification)
Image Processing
302.AI-ComfyUI
Create Outfit Change Task
Create Outfit Change Task (Upload Mask)
Query Outfit Change Task Status
Create Face Swap Task
Query Face Swap Task Status
Create a Task to Replace Any Item
Create Object Replacement Task (Upload Mask)
Check the Status of Any Object Replacement Task
Create a Task to Transform Cartoon Characters into Real People
Query the status of the task to turn a manga character into a real person
Create Style Transfer Task
Query the status of the style transfer task
Create Image Removal Task
Query Image Removal Task Status
302.AI
Qwen-Image-Layered
POST
Qwen-Image-Layered(Image Layering Results)
GET
Qwen-Image-Edit
POST
Qwen-Image-Edit-Plus (Image Editing)
POST
Upscale
POST
Upscale-V2
POST
Upscale-V3
POST
Upscale-V4
POST
Upscale-V5
POST
Upscale-V6
POST
Upscale-Fast (Fast Image Enlargement)
POST
Super-Upscale
POST
Super-Upscale-V2
POST
Face-upscale
POST
Trellis(Image to 3D model)
POST
Pose-Transfer(Human Pose Transformation Result)
GET
Moondream2 (Image Prompt Generation)
POST
Pose-Transfer(Human Pose Transformation)
POST
Virtual-Tryon (Virtual Clothing V2)
POST
Fetch
GET
SAM(AI-generated mask image)
POST
image-translate
POST
Relight-V2
POST
Retouch(Portrait beautification)
POST
Removebg-V3
POST
Denoise(AI Denoising)
POST
Virtual-Tryon(Fetch Result)
GET
Image_Merge
POST
HtmltoPng
POST