Generate an image
data[] with either b64_json or url, depending on provider output.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Image generation and editing through native and external routes.
| Method | Path | Description |
|---|---|---|
POST | /v1/images/generations | Generate images from text and optional image input. |
POST | /v1/images/edits | Edit an input image with a prompt. |
POST | /external/v1/images/generations | External OpenAI-compatible image generation. |
curl https://api.compose.market/v1/images/generations \
-H "Authorization: Bearer $COMPOSE_MARKET_API_KEY" \
-H "Content-Type: application/json" \
-H "x-network-id: eip155:${evmNetworkId} | solana:${svmNetworkId}" \
-d '{
"model": "nano-banana",
"prompt": "A product diagram of an HTTP payment flow",
"size": "1024x1024",
"n": 1
}'
data[] with either b64_json or url, depending on provider output.
{
"model": "gpt-image-2",
"image": "data:image/png;base64,...",
"prompt": "Make the labels easier to read.",
"size": "1024x1024"
}