Dokumentation
ReferenzLLM

Generate an image (OpenAI Image Generation).

POST
/llm/images/generations

Calls a model of type image in the OpenAI Image Generation format.

Authorization

apiKey
headerX-API-Key<token>

API key issued in the Galilea settings.

Request Body

application/json
  1. body

A call in the OpenAI format of the operation (Chat Completions, Responses, Completions, Embeddings, Image Generation). The body is passed to the model's provider; this specification does not restate the OpenAI formats, see the OpenAI API reference for all properties. Galilea reads model and checks it against the models the key can invoke (GET /llm/models) before any provider is called.

model*string

The key of a model of the operation's type, as listed by GET /llm/models.

stream?boolean

Where the OpenAI format has it, true answers as server-sent events (text/event-stream).

[key: string]?any

Response Body

The image in the OpenAI Image Generation format.

application/json
  1. response
curl -X POST "https://example.com/llm/images/generations" \  -H "Content-Type: application/json" \  -d '{    "model": "gpt-image-2-global",    "prompt": "A red circle on a white background",    "n": 1,    "size": "1024x1024"  }'
{}