Skip to content

GPT Image 1.5

OpenAI's latest image generation and editing model.

POST https://llm.siraya.ai/v1/images/generations
Authorization string Required
Your API Key (e.g., `Bearer `).

Body

model string
The ID of the model to use (e.g. `gpt-image-1.5`).
prompt string
A text description of the desired image.
n integer
The number of images to generate.
negative_prompt string
Negative prompt describing content to exclude.
seed integer
Random seed for reproducibility. The same seed produces the same image.
size string
The dimensions of the generated image.
extra_body object
Additional parameters.
curl https://llm.siraya.ai/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <API_KEY>" \
  -d '{
    "model": "gpt-image-1.5",
    "n": 1,
    "prompt": "A child plays the guitar."
  }'
import requests

url = "https://llm.siraya.ai/v1/images/generations"
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <API_KEY>"
}
data = {
    "model": "gpt-image-1.5",
    "n": 1,
    "prompt": "A child plays the guitar."
}

response = requests.post(url, headers=headers, json=data)
print(response.json())