API Endpoint
Loading...
Authentication
Cursor Cookie (user_...)
Proxy Status
Enabled
Available Models
Loading...
Server Information
Featured Models
Loading...
Quick Start Guide
1Authentication
Get your Cursor cookie that starts with "user_..." from browser cookies after logging in to Cursor.
2API Requests
Send POST requests to Loading... with your Cursor cookie as Bearer token.
3Request Format
Use OpenAI-compatible format with model, messages array, and optional parameters.
Available Models
Loading...
Model Categories
Claude Models
-
GPT Models
-
Gemini Models
-
Other Models
-
Integration Guide
1Authentication
To authenticate with the Cursor API:
- Log in to Cursor.so
- Open Developer Tools (F12)
- Go to Application โ Cookies
- Find cookie with name starting with "user_"
- Use this value as your API key
2API Configuration
Set up your API client with:
- Base URL: Loading...
- Headers:
Content-Type: application/json
Authorization: Bearer user_your_cookie_value
3Making Requests
Send chat completion requests:
POST /chat/completions
{
"model": "claude-3.7-sonnet",
"messages": [
{"role": "user", "content": "Hello!"}
],
"temperature": 0.7
}
Code Examples
const response = await fetch('http://asonghp-api.hf.space/hf/v1/chat/completions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer user_your_cookie_value'
},
body: JSON.stringify({
model: 'claude-3.7-sonnet',
messages: [
{ role: 'user', content: 'Hello, who are you?' }
],
temperature: 0.7
})
});
const data = await response.json();
console.log(data);
import requests
url = "http://asonghp-api.hf.space/hf/v1/chat/completions"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer user_your_cookie_value"
}
payload = {
"model": "claude-3.7-sonnet",
"messages": [
{"role": "user", "content": "Hello, who are you?"}
],
"temperature": 0.7
}
response = requests.post(url, headers=headers, json=payload)
data = response.json()
print(data)
curl -X POST "http://asonghp-api.hf.space/hf/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer user_your_cookie_value" \
-d '{
"model": "claude-3.7-sonnet",
"messages": [
{"role": "user", "content": "Hello, who are you?"}
],
"temperature": 0.7
}'
API Tester
Request
0.7
Response
Response will appear here...