Developers
Developer Overview
The ways to build on %APP_NAME%: the REST API, MCP for AI agents, OAuth for apps, webhooks and machine-readable discovery.
Everything you can do on the website with an account (generating images with Seedream 5.5, improving prompts, managing Creations, checking Credits, starting a Credit Pack purchase, writing to support) is also available to your own code and to AI agents, with the same rules and the same prices. The Image Splitter runs only in the browser; integrations get a link that opens a generated image in it.
Integration surfaces
| Surface | Use it for | Authentication |
|---|---|---|
| REST API | Scripts, backend services, and automations | API Key or OAuth token |
| MCP | AI Agents and assistants connecting via MCP | OAuth token |
| OAuth | Connected Apps acting on behalf of users | Authorization code + PKCE |
| Webhooks | Asynchronous event delivery (generation completion, payment) | Signed HTTP deliveries |
| Discovery | Machine-readable inspection of product capabilities and catalog | None |
All integration surfaces derive from a single Integration Action registry, guaranteeing feature parity between REST API operations, MCP tools, and OpenAPI definitions.
Choose a credential
- Direct scripts and backends: access the REST API with an API Key provisioned in account settings.
- Third-party applications and AI Agents: authenticate via OAuth 2.1, requesting delegated user consent for designated Scopes.
Both credential types carry Scopes, such as generations:write or credits:read. Each operation enforces a specific Scope; credentials lacking it return 403 Forbidden (insufficient_scope).
A typical generation flow
GET /modelsto list models, their operations, options and limits.POST /generations/estimateto see the price in Credits.POST /uploadsand aPUTof the file, if you want to add reference images (free, up to 10).POST /generationsto start the job. It returns acreationIdimmediately.- Wait for the
generation.completedwebhook, or pollGET /generations/{creationId}untilstatusissucceededorfailed. - Give the user a
splitterLinksURL from the response to split the image in their browser.
The REST API Reference walks through this flow with full examples.
Financial boundaries and human hand-offs
Agents and API clients can start a Credit Pack checkout, but cannot pay. The checkout returns a URL the user opens to pay. Subscriptions are no longer sold; changes to an existing subscription also return a confirmation URL. Admin capabilities are never exposed via public APIs.
Discovery documents
These public documents describe the product to tools and crawlers, and need no credential:
https://ximagesplitter.com/api/v1/openapi.json: the OpenAPI 3.1 document of the REST API.https://ximagesplitter.com/.well-known/product-profile.json: the model, Credit Pack prices, generation costs and links in one JSON document.https://ximagesplitter.com/llms.txtandhttps://ximagesplitter.com/llms-full.txt: these docs for language models.- Every docs page as Markdown: add
.mdto its address, or use Copy Markdown at the top of the page.
