Skip to main content

Prerequisites

1 Get API Key Log in to YeLIn AI console to obtain your API key 2 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.
请在 Console 查看对应界面截图。
If billing mode is not configured, API calls will fail. You must complete this configuration first!

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 0.01perimage!ComparedtoGPT−Image−1′sToken−basedbilling(0.01 per image! Compared to GPT-Image-1’s Token-based billing (0.01perimage!ComparedtoGPT−Image−1′sToken−basedbilling(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

💡 Price Advantage
  • GPT-Image-1: Token-based billing (10input/10 input/10input/40 output per M Tokens)
  • Sora Image: Fixed $0.01/image (regardless of prompt length)
  • Sora pricing is more transparent and predictable!

🚀 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:

Size Usage Examples

🎯 Best Practices

1. Prompt Optimization

2. Error Handling

3. Result Saving

💡 Advanced Tips

1. Stylized Generation

2. Scene Templates

⚠️ Important Notes

  1. Model Selection:
    • sora_image: Sora official technology
    • gpt-4o-image: Same underlying tech, similar results
    • Both are $0.01/image
  2. 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
  3. URL Extraction:
    • Response contains image URLs in Markdown format
    • Use regex to extract: !\[.*?\]\((https?://[^)]+)\)
    • Download images promptly after generation
  4. 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, 10input/10 input/10input/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. 🎨 Pro Tip: Add detailed descriptions, artistic styles, and lighting conditions to your prompts for better results. The model excels at understanding natural language!