freeaiapi.aiSign Up

Moonshot AI: kimi-k2-0711-preview API

kimi-k2-0711-preview

kimi-k2-0711-preview is a text and chat model from Moonshot AI, available through one freeaiapi.ai API key and billed from your prepaid balance.

In / out price
$0.42 / $1.68 per 1M
Official price
$0.60 / $2.40
You save
30%
Type
Text

Pricing

Price per 1M tokens compared with Moonshot AI's official list price. Last updated .

Token typeOfficialfreeaiapi.aiYou save
Input$0.60$0.4230%
Output$2.40$1.6830%

Call kimi-k2-0711-preview with the OpenAI SDK

Use model ID kimi-k2-0711-preview with base URL https://api.freeaiapi.ai/v1. Quickstart

curl https://api.freeaiapi.ai/v1/chat/completions \
  -H "Authorization: Bearer $FREEAIAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2-0711-preview",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Frequently asked questions

Is this the official Moonshot AI API?

No. freeaiapi.ai is an independent API gateway. You get one OpenAI-compatible key that routes to Moonshot AI and other models, billed from a prepaid balance.

Do I need a credit card to start?

No. Sign up, connect Telegram and join our channel to unlock $1 trial credit. Create an API key and make your first request. Add funds when you want to keep going.

Does it work with the OpenAI SDK?

Yes. Point any OpenAI SDK or OpenAI-compatible tool at https://api.freeaiapi.ai/v1 and use your freeaiapi.ai key. No code changes beyond the base URL and key.

Not affiliated with Moonshot AI. Kimi is a trademark of Moonshot AI.