Prerequisites
Get API Key
Log in to laozhang.ai console to obtain your API key
Configure Billing Mode
Edit token settings and choose one of the following billing modes (same price for both):
- Volume Priority (Recommended): Uses balance billing first, automatically switches when balance is insufficient. Suitable for most users
- Pay-per-call: Direct deduction for each call. Suitable for strict budget control scenarios
Both modes have exactly the same price at $0.01/image, only the billing method differs.

Model Overview
Sora Image is an image generation API based on reverse-engineered technology from sora.chatgpt.com, implementing text-to-image functionality through the chat completions interface. Compared to traditional OpenAI Images API, it offers better pricing at only $0.01/image.💰 Exceptional Value
Pay-per-use billing, only 10 input/$40 output per M Tokens), pricing is more transparent and predictable!
Pay-per-use billing, only 10 input/$40 output per M Tokens), pricing is more transparent and predictable!
🌟 Core Features
- 💸 Ultimate Value: $0.01/image, pay-per-use, no Token consumption worries
- 🎨 High-Quality Output: Based on Sora official technology, results comparable to DALL·E 3
- ⚡ Fast Response: Optimized reverse engineering, second-level generation
- 📐 Multi-Size Support: Supports 2:3, 3:2, 1:1 aspect ratios
- 🔧 Simple to Use: Uses standard chat completions interface, no new API to learn
📋 Model Information
| Model | Model ID | Billing Method | Price | Features |
|---|---|---|---|---|
| Sora Image | sora_image | Pay-per-use | $0.01/image | Text-to-image, high quality |
| GPT-4o Image | gpt-4o-image | Pay-per-use | $0.01/image | Same technology, similar results |
🚀 Quick Start
Basic Example
Batch Generation Example
📐 Aspect Ratio Guide
Sora Image supports three preset ratios, specified by adding ratio markers at the end of prompts:| Ratio Marker | Aspect Ratio | Use Case | Example |
|---|---|---|---|
| 【2:3】 | Vertical | Portrait, phone wallpaper | Beautiful flowers【2:3】 |
| 【3:2】 | Horizontal | Landscape, banner images | Magnificent mountains【3:2】 |
| 【1:1】 | Square | Social media avatar, icons | Cute puppy【1:1】 |
Size Usage Examples
🎯 Best Practices
1. Prompt Optimization
2. Error Handling
3. Result Saving
💡 Advanced Tips
1. Stylized Generation
2. Scene Templates
⚠️ Important Notes
-
Model Selection:
sora_image: Sora official technologygpt-4o-image: Same underlying tech, similar results- Both are $0.01/image
-
Ratio Markers:
- Add ratio marker at end of prompt:
【2:3】,【3:2】, or【1:1】 - Markers must use Chinese brackets
【】 - Without marker, uses default ratio
- Add ratio marker at end of prompt:
-
URL Extraction:
- Response contains image URLs in Markdown format
- Use regex to extract:
!\[.*?\]\((https?://[^)]+)\) - Download images promptly after generation
-
Chinese Support:
- Fully supports Chinese prompts
- No translation required
- Natural language understanding
🔍 FAQ
Q: How is Sora Image different from GPT-Image-1?
A:- Sora Image: Pay-per-use, $0.01/image, fixed price
- GPT-Image-1: Token-based, 40 output per M Tokens, variable cost
- Sora pricing is more predictable for image generation
Q: Can I use English prompts?
A: Yes! Both Chinese and English prompts are fully supported.Q: How to specify aspect ratio?
A: Add ratio marker at end of prompt:Your prompt【2:3】
Q: Are generated images downloadable?
A: Yes, extract URLs from response and download immediately. URLs may expire after some time.Q: What’s the maximum prompt length?
A: No strict limit, but recommended to keep prompts concise and descriptive for best results.🔗 Related Resources
- Sora Image Editing - Edit existing images
- GPT-4o Image Documentation - Alternative model
- Pricing Calculator - Real-time pricing
- API Key Management - Create and manage tokens
🎨 Pro Tip: Add detailed descriptions, artistic styles, and lighting conditions to your prompts for better results. The model excels at understanding natural language!