SDK для Python (clore-ai)
Installation
pip install clore-aiAuthentication
Option 1: Environment variable (recommended)
export CLORE_API_KEY=your_api_key_hereOption 2: CLI config file
clore config set api_key YOUR_API_KEYOption 3: Pass directly in code
Quick Start
Sync Client (CloreAI)
CloreAI)Constructor
wallets()
wallets()Field
Type
Description
marketplace()
marketplace()Parameter
Type
Default
Description
Property
Type
Description
Field
Type
Description
my_servers()
my_servers()Property
Type
Description
server_config(server_name)
server_config(server_name)Parameter
Type
Description
Property
Type
Description
my_orders(include_completed)
my_orders(include_completed)Parameter
Type
Default
Description
Field
Type
Description
spot_marketplace(server_id)
spot_marketplace(server_id)Parameter
Type
Description
Field
Type
Description
create_order(...)
create_order(...)On-demand order
Spot order
Parameter
Type
Required
Description
cancel_order(order_id, issue)
cancel_order(order_id, issue)Parameter
Type
Required
Description
set_server_settings(...)
set_server_settings(...)Parameter
Type
Required
Description
set_spot_price(order_id, price)
set_spot_price(order_id, price)Parameter
Type
Description
Async Client (AsyncCloreAI)
AsyncCloreAI)Basic usage
Concurrent operations
Available methods
Method
Description
Error Handling
Коды ошибок
Код
Исключение
Description
Ограничение частоты запросов
Endpoint
Лимит
Как это работает
Настройка поведения повторных попыток
Конфигурация
Файл конфигурации
Порядок разрешения
Environment variables
Переменная
Description
Следующие шаги
Последнее обновление
Это было полезно?