GET
https://api.cryptohopper.com/v1/ai/models
Returns the language models an AI can use, keyed by model key, with their credit cost and provider.
The handler checks no OAuth scope. Only active models are listed.
Example request
curl "https://api.cryptohopper.com/v1/ai/models" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/ai/models', {
method: 'GET',
headers: {
"access-token": "YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
import requests
response = requests.get(
"https://api.cryptohopper.com/v1/ai/models",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/ai/models');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
],
]);
$data = json_decode(curl_exec($ch), true);
Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
access-token |
string | Required | The OAuth access token of the user. |
Response
{
"data": {
"deepseek/deepseek-chat": {
"name": "DeepSeek V3",
"credit_use": "0.50",
"credit_start": "1.00000000",
"provider": "openrouter",
"context_length": "164000",
"status": "1"
}
}
}