OpenAI

GPT Image 2 API

Image model for prompt-driven generation, editing, and visual design workflows

Use this model

Context

Input

$12.5 / 1M tokens

Output

$75 / 1M tokens

FilesVision
curl https://api.onemux.net/v1/chat/completions \
+  -H "Authorization: Bearer $ONEMUX_API_KEY" \
+  -H "Content-Type: application/json" \
+  -d '{"model":"gpt-4o","messages":[{"role":"user","content":"Hello OneMux"}]}'