Images
Generate an image
Changed onGenerates an image from a text prompt via the image generation router
post/images
Request
- Base URL: https://openrouter.ai/api/v1
- URL: https://openrouter.ai/api/v1/images
- Auth: HTTP bearer
Request body
Example request
{
"model": "bytedance-seed/seedream-4.5",
"prompt": "a red panda astronaut floating in space, studio lighting"
}Response
Image generation response
Example response
{
"created": 1748372400,
"data": [
{
"b64_json": "<base64-encoded-image>"
}
],
"usage": {
"completion_tokens": 4175,
"cost": 0.04,
"prompt_tokens": 0,
"total_tokens": 4175
}
}Changes
- info
added the new
1.5Kenum value to the request property
- info
- info
added the new optional request property
////// - info
added the new
ElevenLabsenum value to the request property////// - info
added the new
ElevenLabsenum value to the request property////// - info
added the new
ElevenLabsenum value to the request property//////
- info