{
"height": 1024,
"width": 1024,
"output_format": "png",
"model": "claude-3-7-sonnet-20250219",
"image_model": "flux-kontext-pro",
"is_optimize": true,
"prompt": "string"
}
curl --location --request POST 'https://api.302.ai/302/gpt-image-creative/generate/generate_image_from_text' \
--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",
"is_optimize": true,
"prompt": "string"
}'
{
"task_id": "356d77d6-66cb-4550-b8d2-e3d9c840d418",
"status": "completed",
"created_at": "2025-09-05T06:57:18.668536Z",
"completed_at": "2025-09-05T06:58:02.174038Z",
"image_url": "https://file.302.ai/gpt/imgs/20250905/83681348b171aea70f4b6e5881b1827c.png"
}