Sprixen Project style API

The Project style API from Sprixen — 2 operation(s) for project style.

GitHub OpenAPI

Operations 4

GET /v1/projects/{id}/style Get the project's style: reference, style bible, material textures and status #
POST /v1/projects/{id}/style Set the project's style from an image, a style board or a description (6… #
POST /v1/projects/{id}/style/previews Draw style options ("boards") from a description (1 credit each, idempotent… #
GET /v1/projects/{id}/style/previews List the project's style boards: one batch (?batchId=) or the latest 24, newest… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sprixen-com:sprixen-com-project-style-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sprixen-com-project-style-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sprixen Project style API
  description: Sprixen AI Game Asset Generator, REST API & MCP Server
  version: '1.0'
  contact: {}
servers:
- url: https://api.sprixen.com
  description: Production
- url: http://localhost:8080
  description: Local Development
tags:
- name: Project style
paths:
  /v1/projects/{id}/style:
    get:
      operationId: ProjectStyleController_get
      summary: 'Get the project''s style: reference, style bible, material textures and status'
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      tags:
      - Project style
      security:
      - bearer: []
    post:
      operationId: ProjectStyleController_create
      summary: Set the project's style from an image, a style board or a description (6…
      description: 'Exactly one source per call: the multipart `image`, `spriteId`, `referenceImageUrl`, `previewId` (a completed board from POST /projects/:id/style/previews, whose style bible is reused) or `description` (Sprixen draws one in-game board from the text at no extra charge and uses it). Reads a style bible (palette, texel density, filter, proportions, wear, lighting, materials) from the reference and draws six seamless material textures (stone wall, floor, wood, metal, cloth, light). Every later 2D and 3D asset of the project can follow it. Poll GET /projects/:id/style.'
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SetProjectStyleDto'
          application/json:
            schema:
              $ref: '#/components/schemas/SetProjectStyleDto'
      responses:
        '202':
          description: ''
      tags:
      - Project style
      security:
      - bearer: []
  /v1/projects/{id}/style/previews:
    post:
      operationId: ProjectStyleController_createPreviews
      summary: Draw style options ("boards") from a description (1 credit each, idempotent…
      description: 'Each board is a 16:9 in-game screenshot of a game in the requested look (a typical scene of the genre, no text, no logos), a different interpretation of the description each time (palette, era, finish, density of detail). Optional references: up to 3 files in the multipart field `images`, or `referenceImageUrls` (Sprixen file URLs) and `spriteIds`. Refine a completed board with `refineFromPreviewId` + `instruction` ("warmer, less worn"). At most 2 batches in progress per project. Poll GET /projects/:id/style/previews?batchId=..., then adopt the chosen board with POST /projects/:id/style { previewId } (6 credits).'
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CreateStylePreviewsDto'
          application/json:
            schema:
              $ref: '#/components/schemas/CreateStylePreviewsDto'
      responses:
        '202':
          description: ''
      tags:
      - Project style
      security:
      - bearer: []
    get:
      operationId: ProjectStyleController_listPreviews
      summary: 'List the project''s style boards: one batch (?batchId=) or the latest 24, newest…'
      description: Each board has its status (pending, processing, completed, failed), imageUrl, summary, palette, description, instruction and parentPreviewId. No charge.
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      - name: batchId
        required: false
        in: query
        description: Batch to read (returned by POST /projects/:id/style/previews). Without it, the latest 24 boards of the project.
        schema:
          type: string
      responses:
        '200':
          description: ''
      tags:
      - Project style
      security:
      - bearer: []
components:
  schemas:
    CreateStylePreviewsDto:
      type: object
      properties:
        requestId:
          type: string
          format: uuid
          description: 'Keep this UUID for identical retries: the same requestId returns the existing batch without charging again.'
        description:
          type: string
          description: 'The look you want, in plain words: genre, era, palette, finish. Example: "dark gothic 90s pixel RPG, 16 colors, chunky textures, torchlight against cold moonlight". Required unless refining (then it defaults to the parent board''s description).'
          minLength: 3
          maxLength: 1000
        count:
          type: number
          description: How many boards to draw (1 to 4, default 3). Each costs 1 credit.
          minimum: 1
          maximum: 4
          default: 3
        referenceImageUrls:
          description: Up to 3 Sprixen file URLs (/api/public/uploads/... or https://api.sprixen.com/public/uploads/...) that guide the look. Upload other images as the multipart field `images` (up to 3 files).
          type: array
          items:
            type: string
        spriteIds:
          description: Up to 3 of your sprites (any of your projects) that guide the look.
          type: array
          items:
            type: string
        refineFromPreviewId:
          type: string
          description: A completed board of this project to refine. Requires `instruction`; every new board applies the adjustment to it.
        instruction:
          type: string
          description: The adjustment to apply when refining, e.g. "warmer, less worn". Required with refineFromPreviewId.
          minLength: 3
          maxLength: 400
      required:
      - requestId
    SetProjectStyleDto:
      type: object
      properties:
        requestId:
          type: string
          format: uuid
          description: Keep this UUID for identical retries to avoid duplicate charges.
        spriteId:
          type: string
          description: Use this sprite (any of your projects) as the style reference.
        referenceImageUrl:
          type: string
          description: A Sprixen file URL (/api/public/uploads/... or https://api.sprixen.com/public/uploads/...) to use as the reference. Upload any other image as the multipart field `image`.
        previewId:
          type: string
          description: A completed style board of this project (POST /projects/:id/style/previews). Its image becomes the reference and its already-read style bible is reused, so only the six materials are drawn.
        description:
          type: string
          description: 'Create the style straight from text, with no image: Sprixen draws one in-game board from this description (no extra charge) and uses it as the reference. To compare options first, use POST /projects/:id/style/previews.'
          minLength: 3
          maxLength: 1000
      required:
      - requestId
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Sprixen API key (spx_live_...)
      name: Authorization
      in: header
    cookie:
      type: apiKey
      in: cookie
      name: sprixen_session