curl --location --request POST 'https://api.302.ai/ws/api/v3/wavespeed-ai/flux-2-pro/text-to-image' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"enable_base64_output": false,
"enable_sync_mode": false,
"prompt": "A photograph of a vintage, beige CRT monitor sitting on a cluttered wooden desk in a dimly lit room. The curved screen glows with monochromatic green text. Displayed on the screen is Python code:\n\nimport flux_api\ndef generate_image(prompt):\n print(f\"Processing: {prompt}\")\n # Connecting to core...\n return True\n\nBelow the code, a blinking cursor sits next to a command prompt: `user@retro-pc:~/dev$ _`. The screen shows scan lines, slight flickering distortion, and reflections of the room lights on the curved glass surface. A mechanical keyboard with beige and grey keycaps sits in front of it. Film grain.",
"seed": -1,
"size": "1024*1024"
}'{
"code": 200,
"message": "success",
"data": {
"id": "83e3c2edfaf8483e83029a0ff0a758e6",
"model": "alibaba/wan-2.5/text-to-video-fast",
"outputs": [],
"urls": {
"get": "https://api.302.ai/ws/api/v3/predictions/83e3c2edfaf8483e83029a0ff0a758e6/result"
},
"has_nsfw_contents": [],
"status": "created",
"created_at": "2025-10-11T06:44:43.299Z",
"error": "",
"executionTime": 0,
"timings": {
"inference": 0
}
}
}