Skip to main content
New Model Support

We now support the Qwen3-Coder-480B-A35B model (model identifier: Qwen3-Coder), which is optimized for code generation and understanding, featuring a 256k context length and 64k maximum output length. It supports tools like Claude Code, Cline, Roo Code and more.

Quick Start

iFlow API provides 100% OpenAI-compatible interface services, allowing you to seamlessly switch to our AI services for higher performance and more cost-effective solutions.

Step 1: Get Your API Key

  1. Visit iFlow and complete registration and login
  2. Generate your exclusive API KEY by clicking Personal Information menu on the user settings page
  3. Safely store the API KEY for subsequent API calls

💡 Tip: The API KEY has full account permissions. Do not disclose it to others.

Step 2: Understand Supported Models

We provide a variety of high-performance AI models for you to choose from. To get the latest model information, detailed parameter configurations, and usage instructions, please visit our models page:

View Complete Model List

Click to view all supported models

On the models page, you can:

  • View detailed information about all available models
  • Learn about context length and output limits for each model
  • Check model performance characteristics and applicable scenarios
  • Copy model ID for API calls

Step 3: Configure API Parameters

Use the following configuration information to call the iFlow API:

Parameter NameParameter ValueDescription
HTTP URLhttps://apis.iflow.cn/v1/chat/completionsChat interface, supports streaming and non streaming
API Keyyour keyObtain from Console, click Personal Information menu on the user settings page
OpenAi Base URLhttps://apis.iflow.cn/v1OpenAI SDK usage

Step 4: Start Calling the API

Basic Examples

Here are examples of calling the iFlow API using different programming languages:

from openai import OpenAI

client = OpenAI(
base_url="https://apis.iflow.cn/v1",
api_key="<YOUR_IFLOW_API_KEY>",
)

completion = client.chat.completions.create(
extra_body={},
model="TBStars2-200B-A13B",
messages=[
{
"role": "user",
"content": "What is the meaning of life?"
}
]
)
print(completion.choices[0].message.content)

Next Steps

  • 📖 Detailed Documentation: View the complete API Reference Manual
  • 🔧 Advanced Configuration: Learn more about parameter configuration options
  • 💬 Technical Support: Contact Us for help

🚀 Start Building: Now that you've mastered the basics, you can start integrating the iFlow API into your projects!