Felo API PlatformFelo API Platform

FAQ

Troubleshooting

Fix authentication, model, streaming, task, and rate-limit problems with a symptom-first checklist.

Start with the symptom, then follow the fix. Most failures come from the base URL, the key, the model ID, or the balance.

What if I can't find the model I need?

Contact us at [email protected]. Some models are available only to selected customers and may not appear in the public catalog. If you need a model you cannot find, contact us to discuss access.

Symptom-first table

SymptomLikely causeFix
401 UNAUTHORIZEDKey missing, wrong, revoked, or not sentSend Authorization: Bearer $FELO_API_KEY; create a new key if it was revoked
402 INSUFFICIENT_CREDITSBalance does not cover the callTop up in Console Billing
404 on every requestBase URL includes a path the endpoint already addsUse https://openapi.felo.ai/api/v1 for OpenAI clients and https://openapi.felo.ai/api for Anthropic clients
404 on one modelModel ID is not public, or the endpoint does not serve itCheck the model ID on the models page and the endpoint's docs
400 model or max_tokens errorMissing required field, or the model does not accept the request shapeAdd max_tokens for Messages; remove unsupported fields
429Rate limit, or an upstream provider limitRead Retry-After; see Errors, Limits, and Retries
5xxUpstream or service failureRetry with backoff; include request_id if it persists
Stream connects but sends nothingA proxy is buffering the response, or the event parser expects the wrong formatRead the stream incrementally; disable response buffering in your proxy
Task never finishesWrong poll endpoint, or a terminal status was not handledPoll the task's own status endpoint and stop on terminal values
Tool calls are ignoredThe model does not advertise that capabilityCheck supported_parameters in the catalog
Data API returns 404The /v1/beta prefix was added twiceUse the path exactly as written in the reference

Authentication

A revoked key returns a message that names the key prefix:

{
  "status": 401,
  "code": "UNAUTHORIZED",
  "message": "API Key has been revoked (keyPrefix=...)"
}

Checklist:

  • The header is Authorization: Bearer <key> for Model API and Felo APIs.
  • The Data API also accepts X-API-Key: <key>.
  • The key is not wrapped in quotes, and there is no trailing newline from a copied environment variable.
  • The deployed environment actually has the variable set; a key that works locally may be missing in production.
  • The key was not deleted or rotated. A deleted or rotated key cannot be shown again; create a new one.

See Authentication for key creation and limits.

Base URL traps

ClientCorrect base URL
OpenAI SDKhttps://openapi.felo.ai/api/v1
Anthropic SDKhttps://openapi.felo.ai/api
Raw model endpointhttps://openapi.felo.ai/api/v1/chat/completions, /responses, or /messages
Data APIhttps://openapi.felo.ai/v1/beta
Felo /v2 APIshttps://openapi.felo.ai/v2

Two common mistakes:

  1. Adding /chat/completions to a base URL that the SDK already extends.
  2. Setting the Anthropic base URL to https://openapi.felo.ai/api/v1. The SDK appends /v1/messages, so the request becomes /api/v1/v1/messages.

Model ID problems

Model IDs are the public IDs from the catalog, not the upstream provider's internal names or a display name.

  • Look up the ID on the models page or in GET /api/v1/models.
  • Confirm the model supports the protocol you are calling (supported_protocols).
  • If you pinned a channel, confirm that channel is published and runnable for that model. An unavailable channel is not a fallback.

See Why does the same model have different prices?.

Streaming problems

  • Set stream: true in the request body, not as a query parameter.
  • Read the response body as a stream. Waiting for the full response defeats streaming.
  • Some proxies and serverless platforms buffer responses. Disable buffering for the route that proxies the request.
  • Chat Completions streams choices[0].delta, not choices[0].message. The final content arrives across many chunks.
  • A stream can end without a clean terminal event if the connection drops. Treat a dropped connection as an incomplete response.

Async task problems

  • Poll the status endpoint that belongs to the task family. Felo workflows use GET /v2/tasks/{task_id}/status; model video and image tasks use their own generation endpoints.
  • Stop on every terminal status, including failures and expirations, not just success.
  • Video generation rejects callback fields with 400, and image generation ignores them. Do not wait for a webhook.
  • A result URL can be short-lived. Request a fresh URL from the status endpoint if a download expires.
  • Check the task before resubmitting. Resubmitting a running task creates a duplicate, and both are billed.

See Async Tasks.

Data API problems

  • Keep the exact method path from the Data API reference.
  • Request bodies are supplier-specific. A field that works for one supplier is not guaranteed to work for another.
  • A provider error can arrive inside a 4xx response with a provider-specific message. Log request_id and the response body.

Security reminders

  • Never put an API key in browser code, a mobile app bundle, or a public repository. Keep it on a server and proxy requests.
  • Do not log the full key. Log a prefix if you need to identify it.
  • Rotate a key immediately if it may have leaked.

Before contacting support

Collect:

  1. Endpoint and HTTP method.
  2. HTTP status, code, and request_id.
  3. Model ID or task ID.
  4. Timestamp with timezone.
  5. A minimal request body with secrets removed.

Send it to support with the account email. Do not include the full API key.

Need help?