Frequently Asked Questions
Answers about compatibility, models, routing, keys, streaming, tool calls, and billing.
These are common questions during development, migration, and production rollout.
Do I need an APIQIK-specific SDK?
No. APIQIK supports OpenAI Chat Completions. Use the official OpenAI Python or Node.js SDK, or any HTTP client.
What changes when migrating from OpenAI?
Usually, set the client's Base URL to https://api.apiqik.com/v1 and replace the key with an APIQIK key. Update model if the original name is not available.
Why can a valid model ID still return a parameter error?
Models do not support identical advanced parameters. Remove optional parameters for a minimal test, then check the catalog for tools, structured output, and multimodal support.
Do I still need retries after automatic failover?
Keep bounded business-level retries for cases where all routes fail or a network connection breaks. Limit attempts and total time so they do not combine with SDK retries into excessive waits.
Why is message.content empty in a streaming response?
Streaming uses incremental objects: read choices[0].delta.content. Some chunks have no text, so handle missing values safely.
Does function calling execute my code automatically?
No. The model only returns tool_calls. Your application validates arguments, executes the function, and returns the result as role: "tool".
Can I put an API key in a web page?
No. Any key sent to a browser can be extracted. Call APIQIK securely from your own backend.
How do I confirm costs?
Record tokens from response usage and estimate against current catalog prices. Final settlement follows console billing records.
How can I get the fastest diagnosis?
Provide the request time, time zone, request ID, model, status, SDK version, and a redacted minimal request. Never send the full API key.