API 参考Router
OpenAI Image Generation
Proxy to OpenAI-compatible image generation endpoint. Returns generated image URLs or base64 data.
AuthorizationBearer <token>
API key as Bearer token: Authorization: Bearer dp_sk_xxx
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/router/openai/v1/images/generations" \ -H "Content-Type: application/json" \ -d '{ "model": "string", "prompt": "string" }'{ "created": 0, "data": [ { "url": "string", "b64_json": "string", "revised_prompt": "string" } ]}