Documentation Index
Fetch the complete documentation index at: https://docs.kymaapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Best Model for This
| Model | Why | Cost per 1K extractions |
|---|---|---|
qwen-3-32b | Fast, accurate JSON, low cost | ~$0.40 |
deepseek-v3 | Best for complex nested schemas | ~$0.75 |
llama-3.3-70b | Good balance of speed + accuracy | ~$1.00 |
Quick Start
Tips & Best Practices
- Always set
temperature=0— extraction is deterministic, not creative. Higher temperatures introduce variation in field names and values. - Always validate output — use Pydantic or Zod. Models occasionally miss optional fields or format dates differently.
- Provide examples in the system prompt — one example of input + expected output dramatically improves accuracy on complex schemas.
- Use
response_format: json_object— guarantees JSON-parseable output, prevents markdown wrapping or prose before the JSON.
Cost Estimate
| Volume | Model | Monthly cost |
|---|---|---|
| 10K extractions/day | qwen-3-32b | ~$12/month |
| 10K extractions/day | deepseek-v3 | ~$22/month |
| 100K extractions/day | qwen-3-32b | ~$120/month |
Next Steps
- Structured Outputs — enforced JSON schema reference
- Error Handling — handle malformed JSON and retries
- Prompt Caching — cache the system prompt when processing batches