Skip to content

Which AISwapLab base URL and endpoint should I use for video, images or text?

Use https://aiswaplab.com/api/v1 as the customer API base. Choose /videos for the supported video model, /images/generations for documented image requests and /chat/completions for non-streaming text. Check /models first and quote through /quotes before creation. Do not send your AISwapLab key directly to a provider gateway or assume that a website workspace route exposes the same API fields.

START WITH THE APIAISwapLab team · Editorial methodUpdated 3 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Set one trusted API origin; Select the supported route and fields; Follow the complete operation sequence.
Workflow diagram: Set one trusted API origin → Select the supported route and fields → Follow the complete operation sequence. Read the article for evidence and limits.

Match the request kind, model and path as one contract

A plausible model name on the wrong endpoint is still an invalid request. The current customer aliases include minimax-h3 for video and deepseek-v4.1-flash for text, with the documented image aliases on the image route. Their names describe configured gateway contracts, not a verified direct-vendor relationship. Website photo-to-person cards and internal console routes should not be copied into customer requests unless the public contract documents those inputs. Check current schema and availability rather than inferring support from a similar vendor API.

What to do next

  1. 01

    Set one trusted API origin

    Configure the HTTPS base once on the server and keep the bearer secret there. Confirm the path is /api/v1 rather than a browser page or upstream vendor URL. Public documentation and /openapi.json describe the contract; account keys, uploads and content still require appropriate authentication and ownership.

  2. 02

    Select the supported route and fields

    Use GET /models for exact aliases and current state, then read the corresponding schema for required input. Videos, images and text differ in duration, size, messages and output behavior. A file upload is POST /files, not media creation; store its owned returned ID only for documented reference fields.

  3. 03

    Follow the complete operation sequence

    Request a quote for the intended body, obtain approval and submit to the correct creation route with an Idempotency-Key. Retain the returned job for asynchronous or uncertain work, poll its job URL and download its content privately when ready. Do not treat the creation response as a direct public media URL.

A concrete example

Illustrative routing error: an application sends a video body's seconds and reference_video_id to /images/generations because its shared client always uses that path. The correct repair is to choose the video route with the supported video alias, not to rename the fields or pass through arbitrary upstream parameters. A separate image request uses its own size and quality schema. Both are quoted and approved before creating paid work.

Customer route map

RouteRole
GET /models; GET /usageRead current state
POST /filesUpload an owned supported reference
POST /quotesEstimate without generation
POST /videos or /images/generations or /chat/completionsCreate the approved kind of work
GET /jobs/{id}; GET /jobs/{id}/contentObserve and privately retrieve existing work

Before you call it ready

  • The customer base URL and credential destination are correct.
  • Model, request kind and endpoint agree.
  • Upload, quote, creation, polling and content are distinct steps.

When to stop or choose another method

Stop when a desired input is absent from the published contract or model readiness is false. Do not probe internal website routes or forward private credentials to another service to make an unsupported request work.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation