ling-3.1-flash API
Call ling-3.1-flash through a single OpenAI-compatible endpoint — one key, no separate vendor account, no multi-provider wiring.
inclusionAIChatReasoningCodingPricing
Prices are per 1M tokens in USD · ¥6.5 = $1 · Billed in CNY
inclusionAI
The Ling family targets long-running agentic workloads. A sparse mixture-of-experts architecture combined with hybrid linear attention keeps inference cost manageable at long context, which is what makes multi-hour tool-calling sessions practical. Ling variants in this catalog share the same OpenAI-compatible endpoint and authentication as every other model on the platform.
When to use it
At $0.30 per 1M input tokens it sits far below the catalogue median of $1.32 — a cost-first choice. Best for coding agents and repository-scale edits. Every model here is reachable with the same API key, so trialling it against a stronger sibling costs one line of code.
Code
from openai import OpenAI
client = OpenAI(
base_url="https://starseaapi.com/v1",
api_key="sk-your-key"
)
r = client.chat.completions.create(
model="ling-3.1-flash",
messages=[{"role": "user", "content": "Explain prefix caching in one paragraph"}]
)
print(r.choices[0].message.content)