Getting Started
Learn how to connect to ValueAPI, authenticate your requests, and understand model compatibility.
App Compatibility
The vast majority of AI applications support the OpenAI Standard interface. To connect them to ValueAPI, you only need to update the API base URL to:
https://api.valueapi.ai/v1Here are step-by-step integration guides for popular AI tools and platforms:
Model Compatibility
Our API is fully compatible with the OpenAI interface protocol, supporting seamless integration with any application or SDK that supports OpenAI interfaces.
Note
All chat models (including non-OpenAI models) support the official OpenAI libraries. Please follow OpenAI's request methods for URLs and formats.
Reference: OpenAI Official Documentation
| Chat Interface Type | Endpoint | Description |
|---|---|---|
| OpenAI Standard | /v1/chat/completions | Can request all chat-type models on our platform (including non-OpenAI models). |
| OpenAI New Format | /v1/responses | Only supported by some new OpenAI models. We recommend using the standard format above. |
| Claude Native | /v1/messages | Can only request models that support Claude's native format. Other models will return an error. |
| Gemini Native | /v1beta/models/... | Can only request Gemini models. Parameters must use lowerCamelCase (e.g., imageSize is correct, image_size is incorrect). |
Warning
Claude models only support prompt caching when using the native /v1/messages endpoint.
Authentication
All API requests must include your API Key in the HTTP Header as shown below:
| Data Format | Header Parameter |
|---|---|
| OpenAI Standard | Authorization: Bearer sk-xxx |
| Claude Native | x-api-key: sk-xxx anthropic-version: 2023-06-01 |
| Gemini Native | x-goog-api-key: sk-xxx |
API Base URL
You can view your current API base URL in the Dashboard of the ValueAPI console. For most integrations, use the following base URL:
https://api.valueapi.ai/v1