Skip to main content
Everything below assumes you already have a hyre_gw_* key — if not, request access first.

Base configuration

Base URL:  https://gw.hyreagent.fun/api/inference/v1
API key:   hyre_gw_...   (sent as a Bearer token)

Make a request

curl https://gw.hyreagent.fun/api/inference/v1/chat/completions \
  -H "Authorization: Bearer $HYRE_GATEWAY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-ai/DeepSeek-V4-Flash",
    "messages": [
      { "role": "user", "content": "Explain impermanent loss in one paragraph." }
    ],
    "max_tokens": 300
  }'

Streaming

Set "stream": true — the gateway streams standard OpenAI SSE chunks, including a final usage frame, so SDK streaming helpers work unchanged:
stream = client.chat.completions.create(
    model="zai-org/GLM-5",
    messages=[{"role": "user", "content": "Write a haiku about Solana."}],
    stream=True,
)
for chunk in stream:
    print(chunk.choices[0].delta.content or "", end="")

Supported parameters

The request schema follows OpenAI’s /chat/completions:
ParameterNotes
modelRequired — a catalog id from GET /models
messagesRequired — up to 1,000 messages
max_tokens / max_completion_tokensPositive integer, capped at the model’s context length
temperature02
top_p01
stopString or array of strings
streamBoolean — SSE streaming
tools, tool_choiceFunction calling, passed through to the model
response_formate.g. JSON mode, passed through to the model
Every response carries an X-Request-Id header — include it when reporting an issue.

Next steps

Browse the model catalog

20+ models across FLASH, STANDARD, and PREMIUM tiers with live pricing.

Limits & error handling

Daily caps, error envelope, and status codes to handle in production.