Run in Apifox
The request URL can also be changed to /302/gpt-image-creative/generate/30 Request parameters support two Content-Types: application/json multipart/form-data
Request Body Params application/json
{
"height" : 1024 ,
"width" : 1024 ,
"output_format" : "png" ,
"model" : "claude-3-7-sonnet-20250219" ,
"image_model" : "flux-kontext-pro" ,
"content" : "string" ,
"note_mode" : 1 ,
"layout" : "horizontal" ,
"lang" : "zh"
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/302/gpt-image-creative/generate/generate_journal_notes' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"height": 1024,
"width": 1024,
"output_format": "png",
"model": "claude-3-7-sonnet-20250219",
"image_model": "flux-kontext-pro",
"content": "string",
"note_mode": 1,
"layout": "horizontal",
"lang": "zh"
}'
Responses application/json Generate Code
{
"task_id" : "e45ecd2a-351f-4c0a-a325-372f72469736" ,
"status" : "completed" ,
"created_at" : "2025-09-05T07:12:24.617961Z" ,
"completed_at" : "2025-09-05T07:12:50.695154Z" ,
"image_url" : "https://file.302.ai/gpt/imgs/20250905/e8e571be604e9ccd5c535f8499d284b4.png"
}
Modified at 2025-09-08 03:04:49