Reference documentation
APIs, CLIs, SDKs, and configuration options for building on API Marketplace.
This reference section documents API Marketplace's APIs, CLIs, and Python SDKs for deploying models, managing your workspace, running training jobs, and calling endpoints in production.
API reference
API Marketplace provides APIs for inference, workspace management, Model Catalog, and Platform Telemetry:
Inference API
Call consistent characters, image scenes, video motion, and speech endpoints.
Management API
Manage characters, models, api keys, credits, and tenant resources.
Model Catalog & Pricing
Inspect models, modalities, context limits, and per-generation credit rates.
Billing & Accounting Ledger
Atomic ledger accounting, credit reservation, capture, and refunds.
Webhooks & Safety Guardrails
HMAC signatures, delivery retries, and prompt safety moderation classifier.
Base URL
All generation, character, model, and accounting endpoints are under /v1.
Authentication
All endpoints require a Bearer token in the Authorization header. See authentication for details.
Content types
- Generation submissions:
application/json(prompt text, character IDs, aspect ratios, and seed controls). - Other requests:
application/json - All responses:
application/json(except media stream downloads and raw image/audio assets).
Versioning
The API is versioned via URL path. The current version is v1. All generation, job, accounting, and webhook endpoints are prefixed with /v1/.
Endpoints43 Endpoints
Select any endpoint below to inspect request parameters, response schemas, and test in the interactive console.
custom media2 endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/generate-image | Generate Image |
| POST | /v1/generate-video | Generate Video |
auth22 endpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/auth/google/url | Google Auth Url |
| POST | /v1/auth/google/callback | Google Callback |
| GET | /v1/auth/github/url | Github Auth Url |
| POST | /v1/auth/github/callback | Github Callback |
| POST | /v1/auth/signup | Signup |
| POST | /v1/auth/login | Login |
| POST | /v1/auth/refresh | Refresh |
| POST | /v1/auth/logout | Logout |
| GET | /v1/auth/me | Me |
| DELETE | /v1/auth/me | Delete Me |
| PATCH | /v1/auth/me | Update Me |
| POST | /v1/auth/delete-account | Delete Me |
| POST | /v1/auth/change-password | Change Password |
| POST | /v1/auth/forgot-password | Forgot Password |
| POST | /v1/auth/reset-password | Reset Password |
| GET | /v1/auth/verify-email | Verify Email Get |
| POST | /v1/auth/verify-email | Verify Email |
| POST | /v1/auth/invitations/accept | Accept Invitation |
| GET | /v1/auth/connected-accounts | Get Connected Accounts |
| POST | /v1/auth/connected-accounts/google/connect | Connect Google Account |
| POST | /v1/auth/connected-accounts/github/connect | Connect Github Account |
| DELETE | /v1/auth/connected-accounts/{provider} | Disconnect Account |
user1 endpoint
| Method | Path | Description |
|---|---|---|
| GET | /v1/user/me | Get Me |
organizations14 endpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/organizations | List My Organizations |
| POST | /v1/organizations | Create Organization |
| GET | /v1/organizations/{org_id} | Get Organization |
| PATCH | /v1/organizations/{org_id} | Update Organization |
| DELETE | /v1/organizations/{org_id} | Delete Organization |
| POST | /v1/organizations/{org_id}/delete | Delete Organization |
| GET | /v1/organizations/{org_id}/members | List Members |
| PATCH | /v1/organizations/{org_id}/members/{member_id} | Update Member Role |
| DELETE | /v1/organizations/{org_id}/members/{member_id} | Remove Member |
| POST | /v1/organizations/{org_id}/invitations | Invite Member |
| GET | /v1/organizations/{org_id}/invitations | List Invitations |
| DELETE | /v1/organizations/{org_id}/invitations/{invitation_id} | Revoke Invitation |
| POST | /v1/organizations/{org_id}/projects | Create Project |
| GET | /v1/organizations/{org_id}/projects | List Projects |
projects7 endpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/projects/{project_id} | Get Project |
| PATCH | /v1/projects/{project_id} | Update Project |
| DELETE | /v1/projects/{project_id} | Delete Project |
| POST | /v1/projects/{project_id}/delete | Delete Project |
| GET | /v1/projects/{project_id}/members | List Project Members |
| DELETE | /v1/projects/{project_id}/members/{member_public_id} | Remove Project Member |
| POST | /v1/projects/{project_id}/members/{member_public_id} | Add Project Member |
API Key Management6 endpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/projects/{project_id}/api-keys | List Api Keys |
| POST | /v1/projects/{project_id}/api-keys | Create Api Key |
| PATCH | /v1/api-keys/{key_id} | Rename Api Key |
| DELETE | /v1/api-keys/{key_id} | Revoke Api Key |
| POST | /v1/api-keys/{key_id}/suspend | Suspend Api Key |
| POST | /v1/api-keys/{key_id}/resume | Resume Api Key |
Consistent Characters8 endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/characters | Create Character Api |
| GET | /v1/characters | List Characters |
| POST | /v1/projects/{project_id}/characters | Create Character Dashboard |
| POST | /v1/characters/generate-from-prompt | Create Character From Custom Prompt |
| POST | /v1/characters/custom-prompt | Create Character From Custom Prompt |
| GET | /v1/characters/{character_id} | Get Character |
| DELETE | /v1/characters/{character_id} | Delete Character |
| GET | /v1/characters/{character_id}/asset | Get Character Asset |
Image Generations6 endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/generations | Create Generation |
| GET | /v1/generations | List Generations |
| GET | /v1/generations/{generation_id} | Get Generation |
| GET | /v1/generations/{generation_id}/events | List Generation Events |
| GET | /v1/generations/{generation_id}/asset | Get Generation Asset |
| GET | /v1/generations/{generation_id}/timing | Get Generation Timing |
assets1 endpoint
| Method | Path | Description |
|---|---|---|
| GET | /v1/assets/local/{object_key} | Serve Local Asset |
Model Catalog3 endpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/models | List Models |
| GET | /v1/models/{model_alias} | Get Model |
| POST | /v1/models/{model_alias}/invoke | Invoke Model |
Audio & Speech2 endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/audio/speech | Generate Speech |
| POST | /v1/audio/transcriptions | Create Transcription |
Video Generations3 endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/video/generations | Create Video Generation |
| GET | /v1/video/generations/{generation_id} | Get Video Generation |
| GET | /v1/video/generations/{generation_id}/asset | Get Video Generation Asset |
Chat Completions3 endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/chat/completions | Create Chat Completion |
| POST | /v1/chat/customizable | Create Customizable Chat Completion |
| POST | /v1/chat/workflow | Workflow Chat Alias |
Billing & Credits5 endpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/billing | Get Billing Summary |
| GET | /v1/billing/ledger | List Credit Ledger |
| GET | /v1/billing/packages | List Credit Packages |
| GET | /v1/billing/transactions | List Billing Transactions |
| POST | /v1/billing/purchase | Purchase Credits |
dashboard1 endpoint
| Method | Path | Description |
|---|---|---|
| GET | /v1/dashboard/summary | Get Dashboard Summary |
Usage & Telemetry1 endpoint
| Method | Path | Description |
|---|---|---|
| GET | /v1/usage | Get Usage |
Safety & Moderation4 endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/moderations/text | Create Moderation |
| POST | /v1/moderations | Create Moderation |
| POST | /v1/moderation | Create Moderation |
| POST | /v1/moderation/text | Create Moderation |
workflow14 endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/workflow/chat | Create Workflow Chat Completion |
| POST | /v1/workflow/create-character | Workflow Create Character |
| GET | /v1/workflow/create-character/status/{job_id} | Workflow Create Character Status |
| POST | /v1/workflow/character-to-image | Workflow Character To Image |
| GET | /v1/workflow/character-to-image/presets | Workflow Character To Image Presets |
| GET | /v1/workflow/character-to-image/status/{job_id} | Workflow Character To Image Status |
| POST | /v1/workflow/image-to-video | Workflow Image To Video |
| GET | /v1/workflow/image-to-video/status/{job_id} | Workflow Image To Video Status |
| POST | /v1/workflow/text-to-image | Workflow Text To Image |
| GET | /v1/workflow/text-to-image/status/{job_id} | Workflow Text To Image Status |
| POST | /v1/workflow/voice-chat/stt | Workflow Voice Stt |
| POST | /v1/workflow/voice-chat/tts | Workflow Voice Tts |
| POST | /v1/workflow/story/generate | Workflow Story Generate |
| GET | /v1/workflow/story/status/{job_id} | Workflow Story Status |
Contact1 endpoint
| Method | Path | Description |
|---|---|---|
| POST | /v1/contact | Submit Talk to Engineer inquiry |
Webhooks & Events8 endpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/webhooks | List Webhooks |
| POST | /v1/webhooks | Create Webhook |
| GET | /v1/webhooks/deliveries/all | List Scoped Webhook Deliveries |
| GET | /v1/webhooks/{webhook_id} | Get Webhook |
| PATCH | /v1/webhooks/{webhook_id} | Update Webhook |
| DELETE | /v1/webhooks/{webhook_id} | Delete Webhook |
| POST | /v1/webhooks/{webhook_id}/test | Test Webhook |
| GET | /v1/webhooks/{webhook_id}/deliveries | List Webhook Deliveries |
OnlyFans Connected Account25 endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/projects/{project_id}/onlyfans/connect/initiate | Initiate delegated browser connection attempt |
| GET | /v1/projects/{project_id}/onlyfans/connect/status | Poll status of active connection attempt |
| POST | /v1/projects/{project_id}/onlyfans/connect/handoff | Submit browser session handoff from companion extension |
| POST | /v1/projects/{project_id}/onlyfans/connect/credentials | Initiate server-side headless browser login with credentials |
| POST | /v1/projects/{project_id}/onlyfans/connect/2fa | Submit 2FA verification code to active headless session |
| POST | /v1/projects/{project_id}/onlyfans/connect/captcha-click | Submit captcha click coordinates to active headless session |
| POST | /v1/projects/{project_id}/onlyfans/connect/stream-start | Initialize live interactive browser session for streaming |
| GET | /v1/projects/{project_id}/onlyfans/connect/stream-status | Get status of live streaming browser session |
| GET | /v1/projects/{project_id}/onlyfans/account | Get connected OnlyFans account for project |
| POST | /v1/projects/{project_id}/onlyfans/account/reconnect | Reconnect OnlyFans account |
| POST | /v1/projects/{project_id}/onlyfans/account/disconnect | Disconnect OnlyFans account |
| POST | /v1/projects/{project_id}/onlyfans/account/health-check | Trigger on-demand session health probe |
| PATCH | /v1/projects/{project_id}/onlyfans/account/proxy | Update dedicated proxy assignment for OnlyFans account |
| GET | /v1/projects/{project_id}/onlyfans/me | Get authenticated creator profile |
| PUT | /v1/projects/{project_id}/onlyfans/me | Update authenticated creator profile (write/mutate) |
| PATCH | /v1/projects/{project_id}/onlyfans/me | Update authenticated creator profile (write/mutate) |
| POST | /v1/projects/{project_id}/onlyfans/validate-data | Execute upstream write validation probe (safe POST) |
| GET | /v1/projects/{project_id}/onlyfans/users/{user_id} | Get public user profile |
| GET | /v1/projects/{project_id}/onlyfans/chats | List active chat threads |
| GET | /v1/projects/{project_id}/onlyfans/chats/{chat_id}/messages | List messages in a chat thread |
| POST | /v1/projects/{project_id}/onlyfans/chats/{chat_id}/messages | Send message to a chat thread |
| DELETE | /v1/projects/{project_id}/onlyfans/chats/{chat_id}/messages/{message_id} | Delete message in chat thread (DELETE write capability) |
| GET | /v1/projects/{project_id}/onlyfans/vault/media | List vault media gallery assets |
| GET | /v1/projects/{project_id}/onlyfans/subscribers | List active subscribers |
| GET | /v1/projects/{project_id}/onlyfans/transactions | List payouts and earnings transactions |
OnlyFans API Gateway11 endpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/onlyfans/me | Get authenticated creator profile via API Gateway |
| PUT | /v1/onlyfans/me | Update authenticated creator profile via API Gateway |
| PATCH | /v1/onlyfans/me | Update authenticated creator profile via API Gateway |
| GET | /v1/onlyfans/users/{user_id} | Get creator or user profile details via API Gateway |
| GET | /v1/onlyfans/chats | List active conversation threads via API Gateway |
| GET | /v1/onlyfans/chats/{chat_id}/messages | List message history in chat thread via API Gateway |
| POST | /v1/onlyfans/chats/{chat_id}/messages | Send direct message to chat thread via API Gateway |
| DELETE | /v1/onlyfans/chats/{chat_id}/messages/{message_id} | Delete chat message via API Gateway |
| GET | /v1/onlyfans/vault/media | List vault media assets via API Gateway |
| GET | /v1/onlyfans/subscribers | List active subscribers via API Gateway |
| GET | /v1/onlyfans/transactions | List earnings and payouts via API Gateway |
