XY API · Developer docs
Image, video and speech APIs. One gateway.
Generate images, edit with references, or create video and speech tasks. One customer key and billing system, with model-specific APIs and downloadable results.
Base URL
https://openai.2yanx.dpdns.orgWhat would you like to build?
All series →Jump to an API
POSTGenerate an image
/v1/images/generationsPOSTEdit an image/v1/images/editsPOSTCreate a video task/v1/videosGETGet video task status/v1/videos/{video_id}GETDownload a video/v1/videos/{video_id}/contentHEADInspect video headers/v1/videos/{video_id}/contentPOSTStream or run a video response/v1/responsesGETGet a background video response/v1/responses/{response_id}POSTSynthesize speech synchronously/v1/audio/speechPOSTCreate a speech task/tts/v1/tasksGETGet speech task status/tts/v1/tasks/{task_id}GETList generated audio artifacts/v1/tasks/{task_id}/artifactsGETDownload audio/v1/tasks/{task_id}/artifacts/{artifact_key}/contentHEADGet audio headers/v1/tasks/{task_id}/artifacts/{artifact_key}/contentGET STARTED
Start with a small request
Create a customer key, check credit and model permissions, then copy the example. Normal generation billing applies.
curl -X POST 'https://openai.2yanx.dpdns.org/v1/images/generations' \
-H "Authorization: Bearer YOUR_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "gpt-image-2",
"prompt": "白色背景上的黄色圆形,简洁插画"
}'