API Reference
An overview of the Qufas AI developer API.
Overview
Qufas AI exposes an OpenAI SDK-compatible Chat Completions subset, related inference endpoints, and read-oriented platform APIs for model discovery, usage, balance, and API key metadata.
The primary inference endpoint is POST /v1/chat/completions. Use https://qufas-ai.vercel.app/v1 as the base URL.
OpenAPI Specification
The canonical specification uses OpenAPI 3.0.3. Its server URL is the API origin; operation paths already include /v1, so clients must not append another /v1 when resolving paths from the specification.
1openapi: 3.0.32info:3 title: Qufas AI API4 version: 1.0.05servers:6 - url: https://qufas-ai.vercel.appAPI Guides
Chat Completions
Send OpenAI-compatible chat completion requests.
Streaming
Receive model output as Server-Sent Events.
Structured Outputs
Request JSON mode or schema-constrained model responses.
Tool Calling
Build agent workflows with OpenAI-compatible tools.
Models
List enabled models available to your API key.
Images
Generate images with URL responses.
Generations
Inspect API-key-scoped inference metadata and Provider Attempts.
Usage
List recent usage records and returned-row totals.
Balance
Read the current prepaid USD balance.
API Keys
List API key metadata and understand Dashboard key management.
Error Codes
Understand API errors and recovery steps.
Was this page helpful?
