-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllms.txt
More file actions
603 lines (483 loc) · 47.9 KB
/
llms.txt
File metadata and controls
603 lines (483 loc) · 47.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
# ModelsLab API Documentation
> ModelsLab is a developer-first AI API platform providing text-to-image, text-to-video, voice/audio, 3D generation, image editing, interior design, deepfake, and uncensored chat APIs. All APIs use JSON over HTTPS with POST requests.
>
> ## Quick Integration Reference
>
> **Base URLs:**
> - Most APIs: `https://modelslab.com/api/v6/`
> - Workflows: `https://modelslab.com/api/v1/workflows`
> - Uncensored Chat (OpenAI-compatible): `https://modelslab.com/api/uncensored-chat/v1/`
> - Enterprise APIs: Use your dedicated server URL provided at subscription
>
> **Authentication:**
> - Standard APIs: Include `"key": "YOUR_API_KEY"` in the JSON request body
> - Uncensored Chat: Use `Authorization: Bearer YOUR_API_KEY` header (OpenAI SDK compatible)
> - Get your API key: https://modelslab.com/dashboard/api-keys
>
> **Request format:** All requests use `Content-Type: application/json` with POST method.
>
> **Response format:**
> ```json
> { "status": "success" | "processing" | "error", "output": ["https://..."], "id": 12345, "generationTime": 2.45, "meta": { ... } }
> ```
>
> **Async pattern:** Some endpoints (video, training, complex generations) return `"status": "processing"` with an `id`. Poll the corresponding fetch endpoint (e.g., `POST /api/v6/video/fetch/{id}`) with `{"key": "YOUR_API_KEY"}` until status becomes `"success"`.
>
> **Webhooks:** Most endpoints accept `"webhook"` (your callback URL) and `"track_id"` (your custom correlation ID) parameters. Results are POSTed to your webhook when generation completes.
>
> **Rate limits:** Queue-based per account (not per endpoint). Pay-as-you-go: 5, Standard: 10, Premium: 15 concurrent queued requests. HTTP 429 when exceeded with `retry_after` field.
>
> **Common parameters across image endpoints:** `key` (required), `prompt` (required), `negative_prompt`, `width` (256-1024, divisible by 8), `height` (256-1024, divisible by 8), `samples` (1-4), `num_inference_steps` (20-50), `guidance_scale` (1-20), `seed`, `safety_checker` ("yes"/"no"), `webhook`, `track_id`.
>
> **Error format:** `{ "status": "error", "message": "Human-readable error description" }`. Note: some legacy endpoints use `messege` instead of `message`.
>
> **SDKs available:** Python, TypeScript, PHP, Dart, Go
## Developer Guide
- [Home](https://docs.modelslab.com/): Platform overview, getting started, and API categories.
- [Quickstart](https://docs.modelslab.com/quickstart): Generate your first AI image in under 5 minutes with code examples.
- [Authentication](https://docs.modelslab.com/authentication): API key creation, usage in requests, security best practices.
- [Rate Limits](https://docs.modelslab.com/rate-limits): Queue-based rate limits per plan (5/10/15 concurrent requests).
- [Error Codes](https://docs.modelslab.com/error-codes): HTTP status codes (400, 401, 402, 403, 429, 500, 503), error response format, handling examples.
- [Webhooks](https://docs.modelslab.com/webhooks): Async notifications via webhook URL and track_id, payload format, retry policy, setup guide.
## MCP Web API
- [Overview](https://docs.modelslab.com/mcp-web-api/overview): Model Context Protocol Web API for AI agent integrations.
- [Tools Reference](https://docs.modelslab.com/mcp-web-api/tools-reference): Available MCP tools and their schemas.
- [Agent Integration](https://docs.modelslab.com/mcp-web-api/agent-integration): How to connect AI agents to ModelsLab via MCP.
## Client SDKs
- [Python SDK](https://docs.modelslab.com/sdk/python): Install, auth, and usage examples for Python.
- [PHP SDK](https://docs.modelslab.com/sdk/php): Install, auth, and usage examples for PHP.
- [Dart SDK](https://docs.modelslab.com/sdk/dart): Install, auth, and usage examples for Dart.
- [TypeScript SDK](https://docs.modelslab.com/sdk/typescript): Install, auth, and usage examples for TypeScript.
- [Go SDK](https://docs.modelslab.com/sdk/golang): Install, auth, and usage examples for Go.
- [Client SDK](https://docs.modelslab.com/sdk/client): Client-side SDK for browser/frontend usage.
## API Reference
- [API Reference](https://docs.modelslab.com/api-reference): Central API index with links to all API categories and quick start options.
## Workflows API
- [Overview](https://docs.modelslab.com/workflows-api/overview): Execute custom workflows via API. Base URL: `https://modelslab.com/api/v1/workflows`.
- [List Workflows](https://docs.modelslab.com/workflows-api/list-workflows): Retrieve all available workflows.
- [Get Workflow Schema](https://docs.modelslab.com/workflows-api/get-workflow-schema): Get input/output schema for a specific workflow.
- [Run Workflow](https://docs.modelslab.com/workflows-api/run-workflow): Execute a workflow with input data.
- [Get Execution Status](https://docs.modelslab.com/workflows-api/get-execution-status): Check status of a workflow execution.
- [Cancel Execution](https://docs.modelslab.com/workflows-api/cancel-execution): Cancel a running workflow execution.
- [Examples](https://docs.modelslab.com/workflows-api/examples): End-to-end workflow usage examples.
## Video API
Endpoint prefix: `https://modelslab.com/api/v6/video/`
- [Overview](https://docs.modelslab.com/video-api/overview): Generate and transform videos from text and images.
- [Watermark Remover](https://docs.modelslab.com/video-api/watermark-remover): Remove watermarks from videos. `POST /video/watermark_remover`
- [Text to Video](https://docs.modelslab.com/video-api/text-to-video): Generate videos from text prompts. `POST /video/text2video`. Models: cogvideox.
- [Image to Video](https://docs.modelslab.com/video-api/img-to-video): Animate images into videos. `POST /video/img2video`
- [Video to Video](https://docs.modelslab.com/video-api/video-to-video): Transform existing videos. `POST /video/video2video`
- [Text to Video Ultra](https://docs.modelslab.com/video-api/text-to-video-ultra): High-quality text-to-video generation. `POST /video/text2video_ultra`
- [Image to Video Ultra](https://docs.modelslab.com/video-api/image-to-video-ultra): High-quality image-to-video. `POST /video/img2video_ultra`
- [Scene Maker](https://docs.modelslab.com/video-api/scene-maker): Generate scenes from text prompts. `POST /video/scene_maker`
- [Base64 to URL](https://docs.modelslab.com/video-api/base64-to-url): Convert base64 video to hosted URL. `POST /video/base64_to_url`
- [Fetch Video](https://docs.modelslab.com/video-api/fetch-video): Retrieve async video results by ID. `POST /video/fetch/{request_id}`
## Image Generation API
Endpoint prefix: `https://modelslab.com/api/v6/images/`
- [Overview](https://docs.modelslab.com/image-generation/overview): Generate images from text, images, and controls.
### Flux
- [Flux Overview](https://docs.modelslab.com/image-generation/flux/overview): Flux-based high-quality image generation.
- [Flux Text to Image](https://docs.modelslab.com/image-generation/flux/flux-text-to-image): Generate photorealistic images. `POST /images/text2img` with `model_id: "flux"`.
### Flux Kontext
- [Flux Kontext Overview](https://docs.modelslab.com/image-generation/flux_kontext/overview): Kontext-guided Flux generation.
- [Flux Kontext Image to Image](https://docs.modelslab.com/image-generation/flux_kontext/flux-kontext-img-to-image): Transform images with Kontext controls.
### Realtime Stable Diffusion
- [Overview](https://docs.modelslab.com/image-generation/realtime-stable-diffusion/overview): Ultra-fast realtime image generation.
- [Text to Image](https://docs.modelslab.com/image-generation/realtime-stable-diffusion/text-to-image): Realtime text-to-image. `POST /images/text2img`
- [Image to Image](https://docs.modelslab.com/image-generation/realtime-stable-diffusion/image-to-image): Realtime image transformation. `POST /images/img2img`
- [Inpaint](https://docs.modelslab.com/image-generation/realtime-stable-diffusion/inpaint): Realtime inpainting with mask. `POST /images/inpaint`
- [Fetch Image](https://docs.modelslab.com/image-generation/realtime-stable-diffusion/fetchimage): Retrieve async results. `POST /images/fetch/{request_id}`
### Community Models (Dreambooth)
- [Overview](https://docs.modelslab.com/image-generation/community-models/overview): Use thousands of public community models.
- [Text to Image](https://docs.modelslab.com/image-generation/community-models/dreambooth-text-to-image): Generate with community models. `POST /images/text2img`
- [Image to Image](https://docs.modelslab.com/image-generation/community-models/dreambooth-image-to-image): Transform with community models. `POST /images/img2img`
- [Inpainting](https://docs.modelslab.com/image-generation/community-models/dreambooth-inpainting): Inpaint with community models. `POST /images/inpaint`
- [LoRA](https://docs.modelslab.com/image-generation/community-models/dreambooth-lora): Generate with a single LoRA adapter.
- [LoRA Multi](https://docs.modelslab.com/image-generation/community-models/dreambooth-lora-multi): Generate with multiple LoRA adapters.
- [Reload Model](https://docs.modelslab.com/image-generation/community-models/dreambooth-reload-model): Reload a model into memory.
- [Fetch Queue Image](https://docs.modelslab.com/image-generation/community-models/dreambooth-fetch-queue-image): Retrieve async results. `POST /images/fetch/{request_id}`
### ControlNet
- [Overview](https://docs.modelslab.com/image-generation/controlnet/overview): Structure-guided image generation using ControlNet.
- [ControlNet Main](https://docs.modelslab.com/image-generation/controlnet/controlnet-main): Single ControlNet generation.
- [ControlNet Multi](https://docs.modelslab.com/image-generation/controlnet/controlnet-multi): Multi-ControlNet generation with multiple control inputs.
### A1111 Schedulers
- [Overview](https://docs.modelslab.com/image-generation/a1111-scheduler/overview): Scheduler configuration for generation.
- [Schedulers List](https://docs.modelslab.com/image-generation/a1111-scheduler/a1111-schedulers): Available scheduler algorithms.
### Train Model
- [Overview](https://docs.modelslab.com/image-generation/train-model/overview): Train custom AI models with your data.
- [LoRA Finetune](https://docs.modelslab.com/image-generation/train-model/lora-finetune): Start LoRA fine-tuning. `POST /images/lora_fine_tune`
- [Finetune List](https://docs.modelslab.com/image-generation/train-model/finetune-list): List your trained models.
- [Finetune Status](https://docs.modelslab.com/image-generation/train-model/finetune-status): Check training job status.
- [Finetune Delete](https://docs.modelslab.com/image-generation/train-model/finetune-delete): Delete a trained model.
- [Cancel Training](https://docs.modelslab.com/image-generation/train-model/cancel-training): Cancel a training job.
- [Base64 Crop](https://docs.modelslab.com/image-generation/train-model/base64-crop): Upload and crop base64 training images.
### Model Operations
- [Overview](https://docs.modelslab.com/image-generation/model-operation/overview): Manage models and model operations.
- [Model List](https://docs.modelslab.com/image-generation/model-operation/model-list): List available public models.
- [Upload Model](https://docs.modelslab.com/image-generation/model-operation/upload-model): Upload or load a custom model.
- [Finetune List](https://docs.modelslab.com/image-generation/model-operation/finetune-list): List fine-tuned models.
## Image Editing API
Endpoint prefix: `https://modelslab.com/api/v6/image_editing/`
- [Overview](https://docs.modelslab.com/image-editing/overview): AI-powered image editing tools.
- [Qwen Edit](https://docs.modelslab.com/image-editing/qwen-edit): AI-powered image editing with Qwen model. `POST /image_editing/qwen_edit`
- [Caption](https://docs.modelslab.com/image-editing/caption): Generate descriptive captions from images. `POST /image_editing/caption`
- [Flux Kontext Image to Image](https://docs.modelslab.com/image-editing/flux-kontext-img-to-image): Flux Kontext-based image transformations.
- [Fashion](https://docs.modelslab.com/image-editing/fashion): Virtual try-on for outfits and styles. `POST /image_editing/fashion`
- [Face Gen](https://docs.modelslab.com/image-editing/face-gen): Generate faces from prompts. `POST /image_editing/face_gen`
- [Image Mixer](https://docs.modelslab.com/image-editing/imagemixer): Blend multiple images together. `POST /image_editing/image_mixer`
- [Flux Headshot](https://docs.modelslab.com/image-editing/flux-headshot): Generate Flux-based professional headshots. `POST /image_editing/flux_headshot`
- [Mask Creator](https://docs.modelslab.com/image-editing/mask-creator): Create masks from images for editing. `POST /image_editing/mask_creator`
- [Object Remover](https://docs.modelslab.com/image-editing/object-remover): Remove objects from images. `POST /image_editing/object_remover`
- [Headshot](https://docs.modelslab.com/image-editing/head-shot): Create professional headshots. `POST /image_editing/head_shot`
- [Inpaint](https://docs.modelslab.com/image-editing/inpaint): Masked edits within regions using image + mask. `POST /image_editing/inpaint`
- [Outpaint](https://docs.modelslab.com/image-editing/outpaint): Extend image boundaries. `POST /image_editing/outpaint`
- [Super Resolution](https://docs.modelslab.com/image-editing/super-resolution): Upscale images by 2x. `POST /image_editing/super_resolution`
- [Background Removal](https://docs.modelslab.com/image-editing/removebg-createmask): Remove backgrounds with mask generation. `POST /image_editing/removebg_createmask`
- [Fetch Image](https://docs.modelslab.com/image-editing/fetchimage): Retrieve async editing results. `POST /image_editing/fetch/{request_id}`
- [Base64 to URL](https://docs.modelslab.com/image-editing/base64-to-url): Convert base64 images to hosted URL.
## Speech & Audio API
Endpoint prefix: `https://modelslab.com/api/v6/voice/`
- [Overview](https://docs.modelslab.com/voice-cloning/overview): Voice synthesis, cloning, TTS, music generation.
- [Voice Cloning](https://docs.modelslab.com/voice-cloning/voice-cloning): Clone voices from audio samples. `POST /voice/voice_cloning`
- [Text to Speech](https://docs.modelslab.com/voice-cloning/text-to-speech): Convert text to natural speech with emotion support. `POST /voice/text_to_speech`. Params: `prompt`, `language`, `voice_id`, `speed`, `emotion`.
- [Speech to Text](https://docs.modelslab.com/voice-cloning/speech-to-text): Transcribe audio to text. `POST /voice/speech_to_text`
- [Voice to Voice](https://docs.modelslab.com/voice-cloning/voice-to-voice): Convert one voice to another. `POST /voice/voice_to_voice`
- [Music Generation](https://docs.modelslab.com/voice-cloning/music-gen): Generate music from text prompts. `POST /voice/music_gen`
- [SFX](https://docs.modelslab.com/voice-cloning/sfx): Generate sound effects from descriptions. `POST /voice/sfx`
- [Voice Cover](https://docs.modelslab.com/voice-cloning/voice-cover): Change the voice of a song. `POST /voice/voice_cover`
- [Create Dubbing](https://docs.modelslab.com/voice-cloning/create-dubbing): Generate multilingual dubbing. `POST /voice/create_dubbing`
- [Vocal Isolator](https://docs.modelslab.com/voice-cloning/vocal-isolator): Separate vocals and instruments. `POST /voice/vocal_isolator`
- [Lyrics Generator](https://docs.modelslab.com/voice-cloning/lyrics-generator): Create song lyrics with AI. `POST /voice/lyrics_generator`
- [Song Generator](https://docs.modelslab.com/voice-cloning/song-generator): Compose full songs. `POST /voice/song_generator`
- [Voice List](https://docs.modelslab.com/voice-cloning/voice-list): List available voices. `POST /voice/voice_list`
- [Fetch Voice](https://docs.modelslab.com/voice-cloning/fetch-voice): Retrieve async audio results. `POST /voice/fetch/{request_id}`
- [Upload Voice](https://docs.modelslab.com/voice-cloning/upload-voice): Upload custom voice samples. `POST /voice/upload_voice`
- [Base64 to URL](https://docs.modelslab.com/voice-cloning/base64-to-url): Convert base64 audio to hosted URL.
## Face Swap API
Endpoint prefix: `https://modelslab.com/api/v6/faceswap/`
- [Overview](https://docs.modelslab.com/faceswap-api/overview): Face swap tools for images and videos.
- [Specific Face Swap](https://docs.modelslab.com/faceswap-api/specific-face-swap): Swap a specific face in an image. `POST /faceswap/single_face_swap`. Params: `init_image`, `target_image`, `reference_image`.
- [Multiple Face Swap](https://docs.modelslab.com/faceswap-api/multiple-face-swap): Swap multiple faces in batch. `POST /faceswap/multi_face_swap`
- [Single Video Swap](https://docs.modelslab.com/faceswap-api/single-video-swap): Swap face in a video. `POST /faceswap/single_video_swap`
- [Specific Video Swap](https://docs.modelslab.com/faceswap-api/specific-video-swap): Swap a specific face in a video. `POST /faceswap/specific_video_swap`
- [Fetch](https://docs.modelslab.com/faceswap-api/fetch): Retrieve async face swap results. `POST /faceswap/fetch/{request_id}`
## 3D API
Endpoint prefix: `https://modelslab.com/api/v6/3d/`
- [Overview](https://docs.modelslab.com/3d-api/overview): Generate 3D assets from text and images.
- [Text to 3D](https://docs.modelslab.com/3d-api/text-to-3d): Generate 3D objects from text prompts. `POST /3d/text_to_3d`
- [Image to 3D](https://docs.modelslab.com/3d-api/image-to-3d): Generate 3D objects from images. `POST /3d/image_to_3d`
- [Fetch 3D](https://docs.modelslab.com/3d-api/fetch): Retrieve async 3D results. `POST /3d/fetch/{request_id}`
- [Base64 to URL](https://docs.modelslab.com/3d-api/base64-to-url): Convert base64 3D files to hosted URL.
## Uncensored Chat API
Base URL: `https://modelslab.com/api/uncensored-chat/v1/` (OpenAI-compatible)
- [Overview](https://docs.modelslab.com/uncensored-chat-api/overview): Uncensored chat endpoints, OpenAI SDK compatible.
- [Chat Completions](https://docs.modelslab.com/uncensored-chat-api/chat-completions): OpenAI-compatible chat API. `POST /chat/completions`. Auth via `Authorization: Bearer` header. Model: `ModelsLab/Llama-3.1-8b-Uncensored-Dare`. Compatible with OpenAI Python/JS SDKs by changing `base_url`.
- [Uncensored Chat](https://docs.modelslab.com/uncensored-chat-api/uncensored-chat): Web UI and direct usage.
## Interior API
Endpoint prefix: `https://modelslab.com/api/v6/interior/`
- [Overview](https://docs.modelslab.com/interior-api/overview): Interior design transformations from images.
- [Interior](https://docs.modelslab.com/interior-api/interior): Transform interior styles. `POST /interior/make`. Params: `init_image`, `prompt`, `strength`, `scale_down`.
- [Exterior Restorer](https://docs.modelslab.com/interior-api/exterior-restorer): Restore building exteriors. `POST /interior/exterior_restorer`
- [Floor Planning](https://docs.modelslab.com/interior-api/floor-planning): Generate layout plans. `POST /interior/floor_planning`
- [Room Decorator](https://docs.modelslab.com/interior-api/room-decorator): Redesign rooms with styles. `POST /interior/room_decorator`
- [Scenario Changer](https://docs.modelslab.com/interior-api/scenario-changer): Change scene context. `POST /interior/scenario_changer`
- [Sketch Rendering](https://docs.modelslab.com/interior-api/sketch-rendering): Render from sketches. `POST /interior/sketch_rendering`
- [Object Removal](https://docs.modelslab.com/interior-api/object-removal): Remove objects from interior images. `POST /interior/object_removal`
- [Interior Mixer](https://docs.modelslab.com/interior-api/interior-mixer): Add objects from one image to another room. `POST /interior/interior_mixer`
- [Fetch](https://docs.modelslab.com/interior-api/fetch): Retrieve async results. `POST /interior/fetch/{request_id}`
## General APIs
Endpoint prefix: `https://modelslab.com/api/v6/`
- [Overview](https://docs.modelslab.com/general-api/overview): General utility endpoints for account and asset management.
- [Base64 Crop](https://docs.modelslab.com/general-api/base64-crop): Upload and crop base64 images.
- [Base64 to URL](https://docs.modelslab.com/general-api/base64-to-url): Convert base64 to temporary hosted URL.
- [Buy Model](https://docs.modelslab.com/general-api/buy-model): Purchase a LoRA model.
- [Buy Subscription](https://docs.modelslab.com/general-api/buy-subscription): Purchase an API key plan.
- [Clear Cache](https://docs.modelslab.com/general-api/clear-cache): Clear user cache.
- [Delete Image](https://docs.modelslab.com/general-api/delete-image): Delete uploaded assets.
- [NSFW Image Check](https://docs.modelslab.com/general-api/nsfw-image-check): Check if an image contains NSFW content.
- [NSFW Prompt Check](https://docs.modelslab.com/general-api/nsfw-prompt-check): Check prompts for NSFW/CP content.
- [Subscribed Products](https://docs.modelslab.com/general-api/subscribed-product): View subscribed products.
- [Check Requests](https://docs.modelslab.com/general-api/check-requests): Get current processing request count.
- [Assets Generated](https://docs.modelslab.com/general-api/assets-generated): View generated assets history.
## Enterprise API
Enterprise APIs provide dedicated server infrastructure with additional management endpoints (system-details, restart-server, clear-cache, clear-queue, update-server). Requires enterprise subscription: https://modelslab.com/enterprise
- [Enterprise Overview](https://docs.modelslab.com/enterprise-api/overview): All enterprise API categories.
### Enterprise General
- [Overview](https://docs.modelslab.com/enterprise-api/general/overview): General enterprise endpoints.
- [Update S3 Details](https://docs.modelslab.com/enterprise-api/general/update-s3-details): Configure S3 storage for output.
- [Reset S3](https://docs.modelslab.com/enterprise-api/general/reset-s3): Reset S3 configuration to defaults.
### Enterprise 3D API
- [Overview](https://docs.modelslab.com/enterprise-api/3d-api/overview): Enterprise 3D generation.
- [Text to 3D](https://docs.modelslab.com/enterprise-api/3d-api/text-to-3d): Generate 3D objects from text.
- [Image to 3D](https://docs.modelslab.com/enterprise-api/3d-api/image-to-3d): Generate 3D objects from images.
- [System Details](https://docs.modelslab.com/enterprise-api/3d-api/system-details): Server status and resource usage.
- [Restart Server](https://docs.modelslab.com/enterprise-api/3d-api/restart-server): Restart the 3D server.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/3d-api/clear-cache): Clear server cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/3d-api/clear-queue): Clear processing queue.
- [Fetch](https://docs.modelslab.com/enterprise-api/3d-api/fetch): Retrieve async results.
- [Update Server](https://docs.modelslab.com/enterprise-api/3d-api/update-server): Update server configuration.
### Enterprise Qwen API
- [Overview](https://docs.modelslab.com/enterprise-api/qwen/overview): Enterprise Qwen image generation.
- [Text to Image](https://docs.modelslab.com/enterprise-api/qwen/text-to-img): Qwen text-to-image.
- [Image to Image](https://docs.modelslab.com/enterprise-api/qwen/img-to-img): Qwen image-to-image.
- [Inpaint](https://docs.modelslab.com/enterprise-api/qwen/inpaint): Qwen inpainting.
- [System Details](https://docs.modelslab.com/enterprise-api/qwen/system-details): Server status.
- [Restart Server](https://docs.modelslab.com/enterprise-api/qwen/restart-server): Restart server.
- [Update Server](https://docs.modelslab.com/enterprise-api/qwen/update-server): Update configuration.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/qwen/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/qwen/clear-queue): Clear queue.
- [Fetch](https://docs.modelslab.com/enterprise-api/qwen/fetch): Retrieve results.
### Enterprise Deepfake API
- [Overview](https://docs.modelslab.com/enterprise-api/deepfake/overview): Enterprise face swap.
- [Specific Face Swap](https://docs.modelslab.com/enterprise-api/deepfake/specific-face-swap): Swap specific face.
- [Multiple Face Swap](https://docs.modelslab.com/enterprise-api/deepfake/multiple-face-swap): Batch face swap.
- [Single Video Swap](https://docs.modelslab.com/enterprise-api/deepfake/single-video-swap): Video face swap.
- [Specific Video Swap](https://docs.modelslab.com/enterprise-api/deepfake/specific-video-swap): Specific video face swap.
- [Fetch](https://docs.modelslab.com/enterprise-api/deepfake/fetch): Retrieve results.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/deepfake/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/deepfake/clear-queue): Clear queue.
- [Restart Server](https://docs.modelslab.com/enterprise-api/deepfake/restart-server): Restart server.
- [System Details](https://docs.modelslab.com/enterprise-api/deepfake/system-details): Server status.
- [Update Server](https://docs.modelslab.com/enterprise-api/deepfake/update-server): Update configuration.
### Enterprise Deepseek Chat API
- [Overview](https://docs.modelslab.com/enterprise-api/deepseek-chat/overview): Enterprise Deepseek uncensored chat.
- [Start](https://docs.modelslab.com/enterprise-api/deepseek-chat/start): Start chat endpoint.
- [Restart Server](https://docs.modelslab.com/enterprise-api/deepseek-chat/restart-server): Restart server.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/deepseek-chat/clear-cache): Clear cache.
### Enterprise Face Gen API
- [Overview](https://docs.modelslab.com/enterprise-api/face-gen/overview): Enterprise realtime face generation.
- [Make Gen](https://docs.modelslab.com/enterprise-api/face-gen/make-gen): Generate faces.
- [Fetch](https://docs.modelslab.com/enterprise-api/face-gen/fetch): Retrieve results.
- [System Details](https://docs.modelslab.com/enterprise-api/face-gen/system-details): Server status.
- [Restart Server](https://docs.modelslab.com/enterprise-api/face-gen/restart-server): Restart server.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/face-gen/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/face-gen/clear-queue): Clear queue.
- [Update Server](https://docs.modelslab.com/enterprise-api/face-gen/update-server): Update configuration.
### Enterprise Flux Kontext Dev API
- [Overview](https://docs.modelslab.com/enterprise-api/flux-kontext-dev/overview): Enterprise Flux Kontext generation.
- [Image to Image](https://docs.modelslab.com/enterprise-api/flux-kontext-dev/image-to-image): Kontext image transformation.
- [Restart Server](https://docs.modelslab.com/enterprise-api/flux-kontext-dev/restart-server): Restart server.
- [System Details](https://docs.modelslab.com/enterprise-api/flux-kontext-dev/system-details): Server status.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/flux-kontext-dev/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/flux-kontext-dev/clear-queue): Clear queue.
- [Fetch Image](https://docs.modelslab.com/enterprise-api/flux-kontext-dev/fetch-image): Retrieve results.
- [Update Server](https://docs.modelslab.com/enterprise-api/flux-kontext-dev/update-server): Update configuration.
### Enterprise Flux API
- [Overview](https://docs.modelslab.com/enterprise-api/flux/overview): Enterprise Flux image generation.
- [Text to Image](https://docs.modelslab.com/enterprise-api/flux/text2img): Flux text-to-image.
- [Image to Image](https://docs.modelslab.com/enterprise-api/flux/img2img): Flux image-to-image.
- [Restart Server](https://docs.modelslab.com/enterprise-api/flux/restart-server): Restart server.
- [System Details](https://docs.modelslab.com/enterprise-api/flux/system-details): Server status.
- [Update Server](https://docs.modelslab.com/enterprise-api/flux/update-server): Update configuration.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/flux/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/flux/clear-queue): Clear queue.
- [Fetch](https://docs.modelslab.com/enterprise-api/flux/fetch): Retrieve results.
### Enterprise Flux Headshot API
- [Overview](https://docs.modelslab.com/enterprise-api/flux-headshot/overview): Enterprise Flux headshot generation.
- [Make Gen](https://docs.modelslab.com/enterprise-api/flux-headshot/make-gen): Generate headshots.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/flux-headshot/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/flux-headshot/clear-queue): Clear queue.
- [Fetch](https://docs.modelslab.com/enterprise-api/flux-headshot/fetch): Retrieve results.
- [Restart Server](https://docs.modelslab.com/enterprise-api/flux-headshot/restart-server): Restart server.
- [System Details](https://docs.modelslab.com/enterprise-api/flux-headshot/system-details): Server status.
- [Update Server](https://docs.modelslab.com/enterprise-api/flux-headshot/update-server): Update configuration.
### Enterprise Image Editing API
- [Overview](https://docs.modelslab.com/enterprise-api/image-editing/overview): Enterprise image editing suite.
- [Qwen Edit](https://docs.modelslab.com/enterprise-api/image-editing/qwen-edit): Qwen-based editing.
- [Face Gen](https://docs.modelslab.com/enterprise-api/image-editing/face-gen): Face generation.
- [Fashion](https://docs.modelslab.com/enterprise-api/image-editing/fashion): Virtual try-on.
- [Headshot](https://docs.modelslab.com/enterprise-api/image-editing/head-shot): Professional headshots.
- [Magic Mix](https://docs.modelslab.com/enterprise-api/image-editing/magic-mix): Image blending.
- [Mask Creator](https://docs.modelslab.com/enterprise-api/image-editing/mask_creator): Mask creation.
- [Object Removal](https://docs.modelslab.com/enterprise-api/image-editing/object-removal): Remove objects.
- [Outpainting](https://docs.modelslab.com/enterprise-api/image-editing/outpainting): Extend boundaries.
- [Background Removal](https://docs.modelslab.com/enterprise-api/image-editing/removebg-createmask): Remove backgrounds.
- [System Details](https://docs.modelslab.com/enterprise-api/image-editing/system-details): Server status.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/image-editing/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/image-editing/clear-queue): Clear queue.
- [Fetch Image](https://docs.modelslab.com/enterprise-api/image-editing/fetchimage): Retrieve results.
- [Restart Server](https://docs.modelslab.com/enterprise-api/image-editing/restart-server): Restart server.
- [Update Server](https://docs.modelslab.com/enterprise-api/image-editing/update-server): Update configuration.
### Enterprise Image to Video Ultra API
- [Overview](https://docs.modelslab.com/enterprise-api/image-to-video-ultra/overview): Enterprise image-to-video.
- [Image to Video](https://docs.modelslab.com/enterprise-api/image-to-video-ultra/imagetovideo): Generate video from image.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/image-to-video-ultra/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/image-to-video-ultra/clear-queue): Clear queue.
- [Fetch Video](https://docs.modelslab.com/enterprise-api/image-to-video-ultra/fetchvideo): Retrieve results.
- [Restart Server](https://docs.modelslab.com/enterprise-api/image-to-video-ultra/restart-server): Restart server.
- [System Details](https://docs.modelslab.com/enterprise-api/image-to-video-ultra/system-details): Server status.
- [Update Server](https://docs.modelslab.com/enterprise-api/image-to-video-ultra/update-server): Update configuration.
### Enterprise Interior API
- [Overview](https://docs.modelslab.com/enterprise-api/interior/overview): Enterprise interior design.
- [Exterior Restorer](https://docs.modelslab.com/enterprise-api/interior/exterior-restorer): Restore exteriors.
- [Make Interior](https://docs.modelslab.com/enterprise-api/interior/make-interior): Transform interiors.
- [Floor Planning](https://docs.modelslab.com/enterprise-api/interior/floor-planning): Generate floor plans.
- [Scenario Changer](https://docs.modelslab.com/enterprise-api/interior/scenario-changer): Change scenes.
- [Sketch Rendering](https://docs.modelslab.com/enterprise-api/interior/sketch-rendering): Render sketches.
- [Room Decorator](https://docs.modelslab.com/enterprise-api/interior/room-decorator): Redesign rooms.
- [Object Removal](https://docs.modelslab.com/enterprise-api/interior/object-removal): Remove objects.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/interior/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/interior/clear-queue): Clear queue.
- [Fetch](https://docs.modelslab.com/enterprise-api/interior/fetch): Retrieve results.
- [Restart Server](https://docs.modelslab.com/enterprise-api/interior/restart-server): Restart server.
- [System Details](https://docs.modelslab.com/enterprise-api/interior/system-details): Server status.
- [Update Server](https://docs.modelslab.com/enterprise-api/interior/update-server): Update configuration.
### Enterprise Realtime API
- [Overview](https://docs.modelslab.com/enterprise-api/realtime/overview): Enterprise realtime image generation.
- [Text to Image](https://docs.modelslab.com/enterprise-api/realtime/text2img): Realtime text-to-image.
- [Image to Image](https://docs.modelslab.com/enterprise-api/realtime/img2img): Realtime image-to-image.
- [Inpaint](https://docs.modelslab.com/enterprise-api/realtime/inpaint): Realtime inpainting.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/realtime/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/realtime/clear-queue): Clear queue.
- [Fetch Image](https://docs.modelslab.com/enterprise-api/realtime/fetchimage): Retrieve results.
- [Restart Server](https://docs.modelslab.com/enterprise-api/realtime/restart-server): Restart server.
- [System Details](https://docs.modelslab.com/enterprise-api/realtime/system-details): Server status.
- [Update Server](https://docs.modelslab.com/enterprise-api/realtime/update-server): Update configuration.
### Enterprise Super Resolution API
- [Overview](https://docs.modelslab.com/enterprise-api/super-resolution/overview): Enterprise image upscaling.
- [Make](https://docs.modelslab.com/enterprise-api/super-resolution/make): Upscale an image.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/super-resolution/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/super-resolution/clear-queue): Clear queue.
- [Fetch Image](https://docs.modelslab.com/enterprise-api/super-resolution/fetchimage): Retrieve results.
- [Restart Server](https://docs.modelslab.com/enterprise-api/super-resolution/restart-server): Restart server.
- [System Details](https://docs.modelslab.com/enterprise-api/super-resolution/system-details): Server status.
- [Update Server](https://docs.modelslab.com/enterprise-api/super-resolution/update-server): Update configuration.
### Enterprise Text to Image API
- [Overview](https://docs.modelslab.com/enterprise-api/text-to-image/overview): Enterprise image generation with full model control.
- [Text to Image](https://docs.modelslab.com/enterprise-api/text-to-image/text2img): Generate images from text.
- [Image to Image](https://docs.modelslab.com/enterprise-api/text-to-image/img2img): Transform images.
- [Inpainting](https://docs.modelslab.com/enterprise-api/text-to-image/inpainting): Inpaint with mask.
- [Load Model V2](https://docs.modelslab.com/enterprise-api/text-to-image/load-model-v2): Load a model (v2).
- [ControlNet](https://docs.modelslab.com/enterprise-api/text-to-image/controlnet-ep): ControlNet endpoint.
- [Super Resolution](https://docs.modelslab.com/enterprise-api/text-to-image/super-resolution): Upscale images.
- [Load Model](https://docs.modelslab.com/enterprise-api/text-to-image/load-model): Load a model.
- [Load VAE](https://docs.modelslab.com/enterprise-api/text-to-image/load-vae): Load a VAE model.
- [Sync Model](https://docs.modelslab.com/enterprise-api/text-to-image/sync-model): Sync model to server.
- [NSFW Image Check](https://docs.modelslab.com/enterprise-api/text-to-image/nsfw-image-check): Check image for NSFW.
- [List Schedulers](https://docs.modelslab.com/enterprise-api/text-to-image/list-schedulers): Available schedulers.
- [Verify Model](https://docs.modelslab.com/enterprise-api/text-to-image/verify-model): Verify model integrity.
- [Get All Models](https://docs.modelslab.com/enterprise-api/text-to-image/get-all-models): List all loaded models.
- [Delete Model](https://docs.modelslab.com/enterprise-api/text-to-image/delete-model): Delete a model.
- [Upload Image](https://docs.modelslab.com/enterprise-api/text-to-image/upload-image): Upload an image.
- [Fetch Queue Image](https://docs.modelslab.com/enterprise-api/text-to-image/fetch-queue-image): Retrieve results.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/text-to-image/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/text-to-image/clear-queue): Clear queue.
- [System Details](https://docs.modelslab.com/enterprise-api/text-to-image/system-details): Server status.
- [Restart Server](https://docs.modelslab.com/enterprise-api/text-to-image/restart-server): Restart server.
- [Update Server](https://docs.modelslab.com/enterprise-api/text-to-image/update-server): Update configuration.
### Enterprise Text to Video Ultra API
- [Overview](https://docs.modelslab.com/enterprise-api/text-to-video-ultra/overview): Enterprise text-to-video.
- [Text to Video Ultra](https://docs.modelslab.com/enterprise-api/text-to-video-ultra/text-to-video-ultra): Generate ultra-quality video.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/text-to-video-ultra/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/text-to-video-ultra/clear-queue): Clear queue.
- [Fetch Video](https://docs.modelslab.com/enterprise-api/text-to-video-ultra/fetch-video): Retrieve results.
- [Restart Server](https://docs.modelslab.com/enterprise-api/text-to-video-ultra/restart-server): Restart server.
- [System Details](https://docs.modelslab.com/enterprise-api/text-to-video-ultra/system-details): Server status.
- [Update Server](https://docs.modelslab.com/enterprise-api/text-to-video-ultra/update-server): Update configuration.
### Enterprise Text to Speech API
- [Overview](https://docs.modelslab.com/enterprise-api/text-to-speech/overview): Enterprise TTS.
- [Text to Speech](https://docs.modelslab.com/enterprise-api/text-to-speech/text-to-speech): Generate speech.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/text-to-speech/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/text-to-speech/clear-queue): Clear queue.
- [Fetch Audio](https://docs.modelslab.com/enterprise-api/text-to-speech/fetch-audio): Retrieve results.
- [Restart Server](https://docs.modelslab.com/enterprise-api/text-to-speech/restart-server): Restart server.
- [System Details](https://docs.modelslab.com/enterprise-api/text-to-speech/system-details): Server status.
- [Update Server](https://docs.modelslab.com/enterprise-api/text-to-speech/update-server): Update configuration.
### Enterprise Uncensored Chat API
- [Overview](https://docs.modelslab.com/enterprise-api/uncensored-chat/overview): Enterprise uncensored chat.
- [Start](https://docs.modelslab.com/enterprise-api/uncensored-chat/start): Start chat endpoint.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/uncensored-chat/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/uncensored-chat/clear-queue): Clear queue.
- [Restart Server](https://docs.modelslab.com/enterprise-api/uncensored-chat/restart-server): Restart server.
### Enterprise Video API
- [Overview](https://docs.modelslab.com/enterprise-api/video/overview): Enterprise video generation.
- [Text to Video](https://docs.modelslab.com/enterprise-api/video/text-to-video): Generate video from text.
- [Image to Video](https://docs.modelslab.com/enterprise-api/video/img-to-video): Generate video from image.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/video/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/video/clear-queue): Clear queue.
- [Fetch Video](https://docs.modelslab.com/enterprise-api/video/fetch-video): Retrieve results.
- [Restart Server](https://docs.modelslab.com/enterprise-api/video/restart-server): Restart server.
- [System Details](https://docs.modelslab.com/enterprise-api/video/system-details): Server status.
- [Update Server](https://docs.modelslab.com/enterprise-api/video/update-server): Update configuration.
### Enterprise Voice Cloning API
- [Overview](https://docs.modelslab.com/enterprise-api/voice-cloning/overview): Enterprise voice synthesis.
- [Text to Audio](https://docs.modelslab.com/enterprise-api/voice-cloning/text-to-audio): Generate audio from text.
- [SFX](https://docs.modelslab.com/enterprise-api/voice-cloning/sfx): Generate sound effects.
- [Music Gen](https://docs.modelslab.com/enterprise-api/voice-cloning/music-gen): Generate music.
- [Voice to Voice](https://docs.modelslab.com/enterprise-api/voice-cloning/voice-to-voice): Voice conversion.
- [Speech to Text](https://docs.modelslab.com/enterprise-api/voice-cloning/speech-to-text): Transcription.
- [Voice Cover](https://docs.modelslab.com/enterprise-api/voice-cloning/voice-cover): Change song voice.
- [Voice Upload](https://docs.modelslab.com/enterprise-api/voice-cloning/voice-upload): Upload voice samples.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/voice-cloning/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/voice-cloning/clear-queue): Clear queue.
- [Fetch](https://docs.modelslab.com/enterprise-api/voice-cloning/fetch): Retrieve results.
- [Restart Server](https://docs.modelslab.com/enterprise-api/voice-cloning/restart-server): Restart server.
- [System Details](https://docs.modelslab.com/enterprise-api/voice-cloning/system-details): Server status.
- [Update Server](https://docs.modelslab.com/enterprise-api/voice-cloning/update-server): Update configuration.
### Enterprise Z Image Turbo API
- [Overview](https://docs.modelslab.com/enterprise-api/z-image-turbo/overview): Enterprise ultra-fast image generation.
- [Text to Image](https://docs.modelslab.com/enterprise-api/z-image-turbo/text2img): Generate images with turbo speed.
- [Fetch](https://docs.modelslab.com/enterprise-api/z-image-turbo/fetch): Retrieve results.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/z-image-turbo/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/z-image-turbo/clear-queue): Clear queue.
- [Restart Server](https://docs.modelslab.com/enterprise-api/z-image-turbo/restart-server): Restart server.
- [System Details](https://docs.modelslab.com/enterprise-api/z-image-turbo/system-details): Server status.
- [Update Server](https://docs.modelslab.com/enterprise-api/z-image-turbo/update-server): Update configuration.
### Enterprise Flux 2 Dev API
- [Overview](https://docs.modelslab.com/enterprise-api/flux-2-dev/overview): Enterprise Flux 2 Dev generation.
- [Text to Image](https://docs.modelslab.com/enterprise-api/flux-2-dev/text2img): Flux 2 Dev text-to-image.
- [Image to Image](https://docs.modelslab.com/enterprise-api/flux-2-dev/img2img): Flux 2 Dev image-to-image.
- [Fetch](https://docs.modelslab.com/enterprise-api/flux-2-dev/fetch): Retrieve results.
- [Clear Cache](https://docs.modelslab.com/enterprise-api/flux-2-dev/clear-cache): Clear cache.
- [Clear Queue](https://docs.modelslab.com/enterprise-api/flux-2-dev/clear-queue): Clear queue.
- [Restart Server](https://docs.modelslab.com/enterprise-api/flux-2-dev/restart-server): Restart server.
- [System Details](https://docs.modelslab.com/enterprise-api/flux-2-dev/system-details): Server status.
- [Update Server](https://docs.modelslab.com/enterprise-api/flux-2-dev/update-server): Update configuration.
## Agent Control Plane API
Base URL: `https://modelslab.com/api/agents/v1/`
The Agent Control Plane provides headless account management, billing, and subscription APIs for AI agents. Agents can manage everything programmatically — no browser needed.
**Authentication:** Use `Authorization: Bearer <access_token>` header. Get a token via `POST /auth/login` or `POST /auth/signup` + `POST /auth/verify`.
**Stripe Publishable Key (for card tokenization):** Fetch dynamically via `GET /billing/stripe-config` — returns `{ "publishable_key": "pk_live_..." }`. Always use this endpoint to get the current key.
Agents create PaymentMethods by calling `POST https://api.stripe.com/v1/payment_methods` with the publishable key and card details. Then pass the `payment_method_id` to ModelsLab endpoints. Card data never touches ModelsLab servers.
**Three payment paths:** (1) Headless: `GET /billing/stripe-config` -> tokenize card via Stripe -> pass `payment_method_id` to `/wallet/fund` or `/subscriptions`. (2) Setup Intent: `POST /billing/setup-intent` -> confirm via Stripe -> reuse payment_method_id. (3) Human-Assisted: `POST /billing/payment-link` -> forward URL to human -> human pays -> agent confirms via `POST /wallet/confirm-checkout` or `POST /subscriptions/confirm-checkout`.
**Rate limits:** `agent-auth` 20/min, `agent-billing` 15/min, `agent-general` 120/min. All responses include `X-RateLimit-Remaining` and `X-RateLimit-Reset` headers.
**Idempotency:** Billing mutations accept an `Idempotency-Key` header to prevent duplicate charges on retries.
- [Headless Agent Flow](https://docs.modelslab.com/agents-api/headless-flow): Complete 5-step account-to-generation workflow without a browser.
- [Authentication](https://docs.modelslab.com/agents-api/authentication): Signup, login, email verification, password reset, token management.
- [Profile & API Keys](https://docs.modelslab.com/agents-api/profile-api-keys): View/update profile, manage API keys.
- [Billing & Wallet](https://docs.modelslab.com/agents-api/billing-and-wallet): Payment methods, wallet funding, invoices, coupons, payment status.
- [Subscriptions](https://docs.modelslab.com/agents-api/subscriptions): List plans, create/pause/resume subscriptions headlessly.
- [Usage & Analytics](https://docs.modelslab.com/agents-api/usage-analytics): Usage summaries, product subscriptions, generation history.
- [Model Discovery](https://docs.modelslab.com/agents-api/model-discovery): Search and browse AI models with filters.
- [Teams](https://docs.modelslab.com/agents-api/teams): Team management and invitations.
### Headless Payment Flow (for AI agents)
```text
1. Agent → POST https://api.stripe.com/v1/payment_methods (with publishable key + card) → pm_id
2. Agent → POST /wallet/fund or POST /subscriptions (with pm_id) → payment complete
```
Key billing endpoints:
- `GET /billing/stripe-config` — Get Stripe publishable key for card tokenization
- `POST /billing/payment-link` — Create Stripe-hosted payment URL for human-assisted payments (params: purpose, amount/plan_id)
- `GET /wallet/balance` — Quick balance check (returns balance + currency)
- `POST /wallet/fund` — Fund wallet with payment_method_id
- `POST /wallet/confirm-checkout` — Confirm Stripe Checkout session for wallet funding (param: session_id)
- `GET /payments/{id}/status` — Check payment status (succeeded/pending/failed)
- `GET /subscriptions/plans` — Discover available plans
- `POST /subscriptions` — Create subscription (headless with pm_id, or Checkout redirect)
- `POST /subscriptions/confirm-checkout` — Confirm Stripe Checkout session for subscription (param: session_id)
- `GET /subscriptions/{id}/status` — Check subscription status (active/past_due/canceled/paused/trialing)
- `GET /wallet/coupons/validate?coupon_code=CODE` — Validate coupon
## Release Notes
- [Overview](https://docs.modelslab.com/release-notes/overview): Latest updates and changelog.
- [API Updates](https://docs.modelslab.com/release-notes/api): API version changes and new endpoints.
- [Playground Updates](https://docs.modelslab.com/release-notes/playground): Playground UI updates.
## Open Source
- [ModelQ Overview](https://docs.modelslab.com/open-source/modelq/overview): ML inference toolkit for model deployment.
- [ModelQ Installation](https://docs.modelslab.com/open-source/modelq/installation): Install ModelQ.
- [ModelQ Usage](https://docs.modelslab.com/open-source/modelq/usage): Basic usage guide.
- [ModelQ Advanced](https://docs.modelslab.com/open-source/modelq/advanced-usage): Advanced configuration and features.
- [ModelsLab MCP](https://docs.modelslab.com/open-source/modelslab-mcp/overview): MCP server for AI agent integration with ModelsLab.
- [ModelsLab MCP Installation](https://docs.modelslab.com/open-source/modelslab-mcp/installation): Install the MCP server.
## Legal
- [Security & Compliance](https://docs.modelslab.com/security-and-compliance): Security practices and compliance.
- [Privacy Policy](https://docs.modelslab.com/modelslab-privacy-policy): Data and privacy policy.