Runbase

Command Palette

Search for a command to run...

OpenAI

GPT Image 1.5

ID:openai/gpt-image-1.5

GPT Image 1.5 image generation API by OpenAI — 4x faster than v1 with superior text rendering, 3 aspect ratios, and medium/high quality modes.

Text to imageImage editingReference imagesText rendering

Overview

GPT Image 1.5 image generation API by OpenAI — 4x faster than v1 with superior text rendering, 3 aspect ratios, and medium/high quality modes.

Authentication

All API requests require a valid API key passed via the Authorization header using the Bearer scheme.

Quickstart

Credentials

Set the RUNBASE_API_KEY environment variable.

Shell
export RUNBASE_API_KEY=your-api-key

Create a run

Shell
curl -s https://runbase.net/api/v1/runs \
  -H "Authorization: Bearer $RUNBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-image-1.5",
    "input": {
      "prompt": "A cinematic product photo of a ceramic lamp"
    }
  }'

Runs

Runs are processed asynchronously. Submit a request, then poll for the result.

Create a run

Shell
curl -s https://runbase.net/api/v1/runs \
  -H "Authorization: Bearer $RUNBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-image-1.5",
    "input": { "prompt": "A cinematic product photo of a ceramic lamp" }
  }'

Get run status

Shell
curl -s https://runbase.net/api/v1/runs/RUN_ID \
  -H "Authorization: Bearer $RUNBASE_API_KEY"

Get result

Poll the status endpoint until status is "succeeded", then read output.urls from the response.

Input Schema

ParameterTypeRequiredDescription
promptstringRequiredPrompt
aspect_ratiostringOptionalAspect ratioOptions: 1:13:22:3
qualitystringOptionalQualityOptions: mediumhigh
image_urlsstring[]OptionalReference images

Output Schema

FieldTypeDescription
urlsstring[]Generated output URLs

Errors

The API uses standard HTTP status codes to indicate success or failure.

Status CodeDescription
400無效請求 - 缺少或格式錯誤的參數
401驗證失敗 - 缺少或無效的 API 金鑰
402點數不足
403禁止存取 - IP 不被允許或 API 金鑰消費上限已超過
404找不到執行紀錄
429超過速率限制
500內部伺服器錯誤