EUrouter

Images

Image generation API reference for EUrouter: request parameters, supported output formats and errors for models served by EU-hosted providers.

OpenAPI JSON

Generate images

POST
/api/v1/images/generations

Generate images with an image model from the live catalog. Returns base64 images in the native OpenAI Images format. Endpoint image_capabilities define supported parameters, defaults and limits. Only completed returned images are billed.

Authentication: Requires an API key.

AuthorizationBearer <token>

API key used for model requests. Format: eur_<public-id>.<secret>.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://api.eurouter.ai/api/v1/images/generations" \  -H "Content-Type: application/json" \  -d '{    "prompt": "string",    "property1": "string",    "property2": "string"  }'
{
  "created": 0,
  "data": [
    {
      "b64_json": "string",
      "revised_prompt": "string"
    }
  ],
  "background": "string",
  "output_format": "png",
  "quality": "string",
  "size": "string",
  "safety_identifier": "string",
  "usage": {
    "input_tokens": 0,
    "input_tokens_details": {
      "image_tokens": 0,
      "text_tokens": 0,
      "cached_tokens": 0
    },
    "output_tokens": 0,
    "total_tokens": 0,
    "output_tokens_details": {
      "image_tokens": 0,
      "text_tokens": 0
    },
    "output_reasoning_tokens": 0,
    "cost": 0,
    "cost_eur": 0,
    "cost_currency": "EUR"
  }
}
{
  "error": {
    "code": 403,
    "message": "string",
    "type": "permission_error",
    "param": null,
    "details": {
      "reason": "string",
      "reasons": [
        {
          "code": "string",
          "layer": "org"
        }
      ]
    }
  },
  "requestId": "string"
}

Was this page helpful?

Still stuck? Contact support