API Quick Reference

Quick reference for the most commonly used Clore.ai API endpoints.

Step 1: Set Up the Clore Client

📦 Using the standard Clore API client. See Clore API Client Reference for the full implementation and setup instructions. Save it as clore_client.py in your project.

from clore_client import CloreClient

client = CloreClient(api_key="your-api-key")

Authentication

All requests require the auth header:

curl -H "auth: YOUR_API_KEY" https://api.clore.ai/v1/marketplace

Note: The header is auth, NOT Authorization: Bearer! https://api.clore.ai


## Rate Limiting

- **1 request per second** per API key
- Implement exponential backoff when you receive code 5

## Common Endpoints

### Get Marketplace

```bash
GET /v1/marketplace

Returns all available servers with specs and pricing.

Get Wallets

Returns wallet balances for all currencies.

Create Order

Rent a server.

Get Orders

Cancel Order

Update Spot Price

Get Spot Market

Response Codes

Code
Meaning

0

Success

1

Database error

2

Invalid input

3

Invalid/missing API key

4

Invalid endpoint

5

Rate limit exceeded

6

See error field

Common Errors

Error
Solution

not_enough_balance

Top up your wallet

server-already-rented

Server not available

too_low_price

Increase spot bid

server-offline

Server is offline, try another

currency-not-allowed

Use different currency

Quick Python Client

Server Object Structure

Order Object Structure

See Also

Last updated

Was this helpful?