GET STARTED · QUICKSTART
Make your first request
This walkthrough takes about two minutes. By the end you'll have a working chat completion against an open-source model running on Hoonify.
Prerequisites
An API key. If you don't have one, first subscribe to a model — keys are revealed only once at creation, save it before you close the dialog.
1. Set your API key
Export the key as an environment variable so you can re-use it across examples. Hoonify API keys are in the form of hoon_...:
shell
export HOONIFY_API_KEY="<COPY_API_KEY_HERE>"2. Send a request
The API is OpenAI-compatible — same request shape, same response shape. Be sure to change the model name in the request to the Model ID in your subscription. Pick your language:
shell
curl https://api.hoonify.ai/v1/chat/completions \
-H "Authorization: Bearer $HOONIFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-ai/DeepSeek-V4-Pro",
"messages": [
{"role": "user", "content": "Explain LoRA fine-tuning in one paragraph."}
]
}'3. Stream the response
Setting stream: true returns chunks as the model generates them. Use this for chat UIs to show first-token latency instead of total latency.
python
stream = client.chat.completions.create(
model="deepseek-ai/DeepSeek-V4-Pro",
messages=[{"role": "user", "content": "Tell me a fun fact about octopi."}],
stream=True,
)
for chunk in stream:
if len(chunk.choices)>0:
delta = chunk.choices[0].delta.content
if delta:
print(delta, end="", flush=True)4. Pick a different model
See the inference catalog for the full list. Common identifiers:
| Model ID | Description |
|---|---|
| deepseek-ai/DeepSeek-V4-Pro | MoE 685B. Top-tier coding and agents. |
| Qwen/Qwen3.6-27B | Fast 27B all-rounder. Great for RAG and high-volume routing. |
| google/gemma-4-31B | Efficient 31B. Strong on chat and support. |
What's next
- Full chat completions API reference — every request and response field documented.
- Workbench — try the same models without writing code first.
Next:Chat completions API