Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kimi K3 API: runnable cURL and Node.js examples

PoYo model page API docs Check

Use Kimi K3 for long-context chat, coding, and agent workloads through PoYo's OpenAI-compatible chat endpoint.

Answer: To use the Kimi K3 API, send a server-side request to POST https://api.poyo.ai/v1/chat/completions with model kimi-k3 and a PoYo API key. The examples in this repository are runnable with Node.js 22+ or cURL.

Last verified against the live PoYo schema and pricing on August 9, 2026.

Quickstart

  1. Create a key in the PoYo dashboard.
  2. Copy .env.example to .env and replace the placeholder.
  3. Run node node/index.mjs.
POYO_API_KEY=YOUR_POYO_API_KEY_HERE
POYO_BASE_URL=https://api.poyo.ai

The complete cURL request is in curl/generate.md. The Node.js example prints the complete JSON response.

Model IDs

  • kimi-k3

Use the exact IDs above. Product names and API model IDs are not always identical.

Request fields

Field Requirement Meaning
model required kimi-k3.
messages required OpenAI-style role/content messages.
temperature optional Sampling temperature.
max_tokens optional Maximum generated tokens.
stream optional Enable streaming when your client supports SSE.

Pricing snapshot

Usage Price
Input $2.28 per 1M tokens
Output $11.40 per 1M tokens

Pricing can change. Confirm the current amount on the model page before a production rollout.

Best for

  • long-context analysis
  • coding assistants
  • agent planning

Important behavior

  • Kimi K3 supports a context window of up to 1 million tokens; practical limits also depend on request and output settings.
  • Send requests from a trusted backend so the API key never reaches browser code.
  • Log request IDs and usage, not full sensitive prompts.

Production guidance

Set an application timeout, retry only transient failures, cap output size, and record token usage. Do not put POYO_API_KEY in browser or mobile client code.

Repository map

Links

License

MIT

About

Kimi K3 API cURL and Node.js examples for long-context chat, coding, and agents through PoYo.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages