Reference

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:

Base URL

https://api.apimarketplace.com/v1

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.

Authorization: Bearer YOUR_API_KEY

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

MethodPathDescription
POST/v1/generate-imageGenerate Image
POST/v1/generate-videoGenerate Video

auth22 endpoints

MethodPathDescription
GET/v1/auth/google/urlGoogle Auth Url
POST/v1/auth/google/callbackGoogle Callback
GET/v1/auth/github/urlGithub Auth Url
POST/v1/auth/github/callbackGithub Callback
POST/v1/auth/signupSignup
POST/v1/auth/loginLogin
POST/v1/auth/refreshRefresh
POST/v1/auth/logoutLogout
GET/v1/auth/meMe
DELETE/v1/auth/meDelete Me
PATCH/v1/auth/meUpdate Me
POST/v1/auth/delete-accountDelete Me
POST/v1/auth/change-passwordChange Password
POST/v1/auth/forgot-passwordForgot Password
POST/v1/auth/reset-passwordReset Password
GET/v1/auth/verify-emailVerify Email Get
POST/v1/auth/verify-emailVerify Email
POST/v1/auth/invitations/acceptAccept Invitation
GET/v1/auth/connected-accountsGet Connected Accounts
POST/v1/auth/connected-accounts/google/connectConnect Google Account
POST/v1/auth/connected-accounts/github/connectConnect Github Account
DELETE/v1/auth/connected-accounts/{provider}Disconnect Account

user1 endpoint

MethodPathDescription
GET/v1/user/meGet Me

organizations14 endpoints

MethodPathDescription
GET/v1/organizationsList My Organizations
POST/v1/organizationsCreate 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}/deleteDelete Organization
GET/v1/organizations/{org_id}/membersList 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}/invitationsInvite Member
GET/v1/organizations/{org_id}/invitationsList Invitations
DELETE/v1/organizations/{org_id}/invitations/{invitation_id}Revoke Invitation
POST/v1/organizations/{org_id}/projectsCreate Project
GET/v1/organizations/{org_id}/projectsList Projects

projects7 endpoints

MethodPathDescription
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}/deleteDelete Project
GET/v1/projects/{project_id}/membersList 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

MethodPathDescription
GET/v1/projects/{project_id}/api-keysList Api Keys
POST/v1/projects/{project_id}/api-keysCreate 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}/suspendSuspend Api Key
POST/v1/api-keys/{key_id}/resumeResume Api Key

API Request Logs2 endpoints

MethodPathDescription
GET/v1/logsList Logs
GET/v1/logs/{request_id}Get Log

Consistent Characters8 endpoints

MethodPathDescription
POST/v1/charactersCreate Character Api
GET/v1/charactersList Characters
POST/v1/projects/{project_id}/charactersCreate Character Dashboard
POST/v1/characters/generate-from-promptCreate Character From Custom Prompt
POST/v1/characters/custom-promptCreate Character From Custom Prompt
GET/v1/characters/{character_id}Get Character
DELETE/v1/characters/{character_id}Delete Character
GET/v1/characters/{character_id}/assetGet Character Asset

Image Generations6 endpoints

MethodPathDescription
POST/v1/generationsCreate Generation
GET/v1/generationsList Generations
GET/v1/generations/{generation_id}Get Generation
GET/v1/generations/{generation_id}/eventsList Generation Events
GET/v1/generations/{generation_id}/assetGet Generation Asset
GET/v1/generations/{generation_id}/timingGet Generation Timing

assets1 endpoint

MethodPathDescription
GET/v1/assets/local/{object_key}Serve Local Asset

Model Catalog3 endpoints

MethodPathDescription
GET/v1/modelsList Models
GET/v1/models/{model_alias}Get Model
POST/v1/models/{model_alias}/invokeInvoke Model

Audio & Speech2 endpoints

MethodPathDescription
POST/v1/audio/speechGenerate Speech
POST/v1/audio/transcriptionsCreate Transcription

Video Generations3 endpoints

MethodPathDescription
POST/v1/video/generationsCreate Video Generation
GET/v1/video/generations/{generation_id}Get Video Generation
GET/v1/video/generations/{generation_id}/assetGet Video Generation Asset

Chat Completions3 endpoints

MethodPathDescription
POST/v1/chat/completionsCreate Chat Completion
POST/v1/chat/customizableCreate Customizable Chat Completion
POST/v1/chat/workflowWorkflow Chat Alias

Billing & Credits5 endpoints

MethodPathDescription
GET/v1/billingGet Billing Summary
GET/v1/billing/ledgerList Credit Ledger
GET/v1/billing/packagesList Credit Packages
GET/v1/billing/transactionsList Billing Transactions
POST/v1/billing/purchasePurchase Credits

dashboard1 endpoint

MethodPathDescription
GET/v1/dashboard/summaryGet Dashboard Summary

Usage & Telemetry1 endpoint

MethodPathDescription
GET/v1/usageGet Usage

Safety & Moderation4 endpoints

MethodPathDescription
POST/v1/moderations/textCreate Moderation
POST/v1/moderationsCreate Moderation
POST/v1/moderationCreate Moderation
POST/v1/moderation/textCreate Moderation

workflow14 endpoints

MethodPathDescription
POST/v1/workflow/chatCreate Workflow Chat Completion
POST/v1/workflow/create-characterWorkflow Create Character
GET/v1/workflow/create-character/status/{job_id}Workflow Create Character Status
POST/v1/workflow/character-to-imageWorkflow Character To Image
GET/v1/workflow/character-to-image/presetsWorkflow Character To Image Presets
GET/v1/workflow/character-to-image/status/{job_id}Workflow Character To Image Status
POST/v1/workflow/image-to-videoWorkflow Image To Video
GET/v1/workflow/image-to-video/status/{job_id}Workflow Image To Video Status
POST/v1/workflow/text-to-imageWorkflow Text To Image
GET/v1/workflow/text-to-image/status/{job_id}Workflow Text To Image Status
POST/v1/workflow/voice-chat/sttWorkflow Voice Stt
POST/v1/workflow/voice-chat/ttsWorkflow Voice Tts
POST/v1/workflow/story/generateWorkflow Story Generate
GET/v1/workflow/story/status/{job_id}Workflow Story Status

Contact1 endpoint

MethodPathDescription
POST/v1/contactSubmit Talk to Engineer inquiry

Webhooks & Events8 endpoints

MethodPathDescription
GET/v1/webhooksList Webhooks
POST/v1/webhooksCreate Webhook
GET/v1/webhooks/deliveries/allList 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}/testTest Webhook
GET/v1/webhooks/{webhook_id}/deliveriesList Webhook Deliveries

OnlyFans Connected Account25 endpoints

MethodPathDescription
POST/v1/projects/{project_id}/onlyfans/connect/initiateInitiate delegated browser connection attempt
GET/v1/projects/{project_id}/onlyfans/connect/statusPoll status of active connection attempt
POST/v1/projects/{project_id}/onlyfans/connect/handoffSubmit browser session handoff from companion extension
POST/v1/projects/{project_id}/onlyfans/connect/credentialsInitiate server-side headless browser login with credentials
POST/v1/projects/{project_id}/onlyfans/connect/2faSubmit 2FA verification code to active headless session
POST/v1/projects/{project_id}/onlyfans/connect/captcha-clickSubmit captcha click coordinates to active headless session
POST/v1/projects/{project_id}/onlyfans/connect/stream-startInitialize live interactive browser session for streaming
GET/v1/projects/{project_id}/onlyfans/connect/stream-statusGet status of live streaming browser session
GET/v1/projects/{project_id}/onlyfans/accountGet connected OnlyFans account for project
POST/v1/projects/{project_id}/onlyfans/account/reconnectReconnect OnlyFans account
POST/v1/projects/{project_id}/onlyfans/account/disconnectDisconnect OnlyFans account
POST/v1/projects/{project_id}/onlyfans/account/health-checkTrigger on-demand session health probe
PATCH/v1/projects/{project_id}/onlyfans/account/proxyUpdate dedicated proxy assignment for OnlyFans account
GET/v1/projects/{project_id}/onlyfans/meGet authenticated creator profile
PUT/v1/projects/{project_id}/onlyfans/meUpdate authenticated creator profile (write/mutate)
PATCH/v1/projects/{project_id}/onlyfans/meUpdate authenticated creator profile (write/mutate)
POST/v1/projects/{project_id}/onlyfans/validate-dataExecute 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/chatsList active chat threads
GET/v1/projects/{project_id}/onlyfans/chats/{chat_id}/messagesList messages in a chat thread
POST/v1/projects/{project_id}/onlyfans/chats/{chat_id}/messagesSend 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/mediaList vault media gallery assets
GET/v1/projects/{project_id}/onlyfans/subscribersList active subscribers
GET/v1/projects/{project_id}/onlyfans/transactionsList payouts and earnings transactions

OnlyFans API Gateway11 endpoints

MethodPathDescription
GET/v1/onlyfans/meGet authenticated creator profile via API Gateway
PUT/v1/onlyfans/meUpdate authenticated creator profile via API Gateway
PATCH/v1/onlyfans/meUpdate authenticated creator profile via API Gateway
GET/v1/onlyfans/users/{user_id}Get creator or user profile details via API Gateway
GET/v1/onlyfans/chatsList active conversation threads via API Gateway
GET/v1/onlyfans/chats/{chat_id}/messagesList message history in chat thread via API Gateway
POST/v1/onlyfans/chats/{chat_id}/messagesSend 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/mediaList vault media assets via API Gateway
GET/v1/onlyfans/subscribersList active subscribers via API Gateway
GET/v1/onlyfans/transactionsList earnings and payouts via API Gateway