openai/gpt-5.4-image-2
[GPT-5.4](https://openrouter.ai/openai/gpt-5.4) Image 2 combines OpenAI's GPT-5.4 model with state-of-the-art image generation capabilities from GPT Image 2. It enables rich multimodal workflows, allowing users to seamle...
Input⌘ / Ctrl + Enter
Try a prompt
OutputReady
Your response will appear here
Choose an example or write a prompt, then click Run.
API details and access
Model Details
ProviderOpenAI
TypeLlm
Model IDopenai/gpt-5.4-image-2
Capabilities
InputTextImage
OutputText
Context-
Max Output128,000
VisionSupported
Function CallingNot supported
Access details
Responses APIBase URLhttps://api.sandbase.ai
API Endpoint/v1/responses
{
"model": "openai/gpt-5.4-image-2",
"instructions": "You are a helpful assistant.",
"input": "Hello",
"max_output_tokens": 512
}Pricing
Input$8.00 / 1M tokens
Output$15.00 / 1M tokens
Cache read$2.00 / 1M tokens
Production endpoint
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
POST
https://api.sandbase.ai/v1/chat/completionsModel ID
openai/gpt-5.4-image-201
Input Schema
9 parameters · 1 required · 8 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
messages | object[] | Required | — |
seed | integer | Optional | — |
stop | string[] | Optional | — |
stream | boolean | Optional | Default: false |
max_tokens | integer | Optional | Max: 128000 |
temperature | number | Optional | Min: 0 · Max: 2 · Default: 1 |
response_format | object | Optional | — |
presence_penalty | number | Optional | Min: -2 · Max: 2 |
frequency_penalty | number | Optional | Min: -2 · Max: 2 |
02
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the completion |
object | string | Object type, e.g. "chat.completion" |
model | string | Model used for the completion |
choices | array | List of completion choices |
choices[].message.content | string | Generated text content |
choices[].finish_reason | string | Reason the generation stopped |
usage.prompt_tokens | integer | Number of tokens in the prompt |
usage.completion_tokens | integer | Number of tokens in the completion |
usage.total_tokens | integer | Total tokens used |
03
Code Examples
Ready-to-run snippets
curl https://api.sandbase.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "openai/gpt-5.4-image-2",
"messages": [{"role": "user", "content": "Hello"}],
"temperature": 0.7,
"max_tokens": 2048,
"stream": true
}'
