Skip to main content

Guide

Qwen API with an OpenAI-compatible endpoint

Updated

Tadly serves open-weight text models, Qwen first, at https://api.tadly.dev/v1 with the same request format as the OpenAI API. Set your SDK’s base URL to that address, use a Tadly API key, and pay with a one-time 30-day plan or per token from a prepaid wallet.

How do I call the API?

  1. Create a key in the dashboard and export it as TADLY_API_KEY.
  2. Send a chat completion:
shell
curl https://api.tadly.dev/v1/chat/completions \
  -H "Authorization: Bearer $TADLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "qwen3.5", "messages": [{"role": "user", "content": "Write a haiku about open models."}]}'

With an OpenAI SDK, set the base URL to https://api.tadly.dev/v1. Full reference: the API docs.

Which Qwen model is served?

Text models available now
Row labelContext windowPer-token price
Qwen-3.5128K tokens$0.15 / 1M tokens

More detail on the models page.

How much does it cost?

Plan prices You are charged in rupees in India and US dollars elsewhere.
Row labelPricePeriodUsage
StarterFor side projects$1 or ₹9930 daysBase usage
ProFor daily coding$11 or ₹99930 days5× base usage
UltraFor heavy agents$102 or ₹8,99930 days100× base usage

Plans are one-time payments for 30 days and never renew. To pay per token instead, add credit to a prepaid wallet; rates are on the pricing page. Plans bought in India are charged in rupees and can be paid with UPI.

Common questions

Do I need a special SDK to call Qwen on Tadly?

No. The API is OpenAI-compatible, so any OpenAI SDK works once you change the base URL and the API key. The Anthropic Messages format is accepted too, for Claude Code.

How do I find the model id to send?

GET /v1/models returns every model you can call, with the id to put in the model field.

How is Qwen usage charged?

Either from a one-time 30-day plan, up to its usage limits, or per token from a prepaid US-dollar wallet. The minimum wallet top-up is US$1.