Description
[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 seamlessly move between reasoning, coding, and...
API Usage Examples
OpenAI Compatible Endpoint
Use this endpoint with any OpenAI-compatible library. Model: OpenAI: GPT-5.4 Image 2 (openai/gpt-5.4-image-2)
curl https://api.ridvay.com/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": "Explain the capabilities of the OpenAI: GPT-5.4 Image 2 model"
}
],
"temperature": 0.7,
"max_tokens": 1024
}'Supported Modalities
- Text
- Images
API Pricing
- Input: 8$ / 1M tokens
- Output: 15$ / 1M tokens
Token Limits
- Max Output: 128,000 tokens
- Max Context: 272,000 tokens
Subscription Tiers
- free
- pro
- ultimate