Recraft Images API

The Images API from Recraft — 16 operation(s) for images.

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/recraft-images-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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

OpenAPI Specification

recraft-images-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Recraft Images API
  description: Recraft generative image API for raster and vector image generation, editing, and processing.
  version: 1.0.0
servers:
- url: https://external.api.recraft.ai
  description: Recraft API
security:
- bearerAuth: []
tags:
- name: Images
paths:
  /v1/images/generations:
    post:
      summary: Generate image
      description: Generate an image from a text prompt.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - prompt
              properties:
                prompt:
                  type: string
                n:
                  type: integer
                model:
                  type: string
                style:
                  type: string
                style_id:
                  type: string
                size:
                  type: string
                negative_prompt:
                  type: string
                response_format:
                  type: string
                text_layout:
                  type: object
                controls:
                  type: object
      responses:
        '200':
          description: Generated image data
      tags:
      - Images
  /v1/images/generations/raster:
    post:
      summary: Generate raster image
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - prompt
              properties:
                prompt:
                  type: string
                n:
                  type: integer
                model:
                  type: string
      responses:
        '200':
          description: Raster image output
      tags:
      - Images
  /v1/images/generations/vector:
    post:
      summary: Generate vector image
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - prompt
              properties:
                prompt:
                  type: string
                n:
                  type: integer
                model:
                  type: string
      responses:
        '200':
          description: Vector image output
      tags:
      - Images
  /v1/images/imageToImage:
    post:
      summary: Image to image
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - image
              - prompt
              - strength
              properties:
                image:
                  type: string
                  format: binary
                prompt:
                  type: string
                strength:
                  type: number
                n:
                  type: integer
                model:
                  type: string
                style:
                  type: string
                style_id:
                  type: string
                response_format:
                  type: string
                negative_prompt:
                  type: string
      responses:
        '200':
          description: Modified image
      tags:
      - Images
  /v1/images/inpaint:
    post:
      summary: Image inpainting
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - image
              - mask
              - prompt
              properties:
                image:
                  type: string
                  format: binary
                mask:
                  type: string
                  format: binary
                prompt:
                  type: string
      responses:
        '200':
          description: Inpainted image
      tags:
      - Images
  /v1/images/outpaint:
    post:
      summary: Image outpainting
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - image
              - prompt
              properties:
                image:
                  type: string
                  format: binary
                prompt:
                  type: string
                expand_left:
                  type: integer
                expand_right:
                  type: integer
                expand_top:
                  type: integer
                expand_bottom:
                  type: integer
                size:
                  type: string
                zoom_out_percentage:
                  type: number
      responses:
        '200':
          description: Extended image
      tags:
      - Images
  /v1/images/replaceBackground:
    post:
      summary: Replace background
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - image
              - prompt
              properties:
                image:
                  type: string
                  format: binary
                prompt:
                  type: string
      responses:
        '200':
          description: Image with replaced background
      tags:
      - Images
  /v1/images/generateBackground:
    post:
      summary: Generate background
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - image
              - mask
              - prompt
              properties:
                image:
                  type: string
                  format: binary
                mask:
                  type: string
                  format: binary
                prompt:
                  type: string
      responses:
        '200':
          description: Image with generated background
      tags:
      - Images
  /v1/images/vectorize:
    post:
      summary: Vectorize image
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                image:
                  type: string
                  format: binary
                response_format:
                  type: string
      responses:
        '200':
          description: SVG image
      tags:
      - Images
  /v1/images/removeBackground:
    post:
      summary: Remove background
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                image:
                  type: string
                  format: binary
                response_format:
                  type: string
      responses:
        '200':
          description: Image with transparent background
      tags:
      - Images
  /v1/images/crispUpscale:
    post:
      summary: Crisp upscale
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                image:
                  type: string
                  format: binary
                response_format:
                  type: string
      responses:
        '200':
          description: Upscaled image
      tags:
      - Images
  /v1/images/creativeUpscale:
    post:
      summary: Creative upscale
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                image:
                  type: string
                  format: binary
                response_format:
                  type: string
      responses:
        '200':
          description: Creatively upscaled image
      tags:
      - Images
  /v1/images/eraseRegion:
    post:
      summary: Erase region
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - image
              - mask
              properties:
                image:
                  type: string
                  format: binary
                mask:
                  type: string
                  format: binary
                response_format:
                  type: string
      responses:
        '200':
          description: Image with erased region
      tags:
      - Images
  /v1/images/variateImage:
    post:
      summary: Remix image
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - image
              - size
              properties:
                image:
                  type: string
                  format: binary
                size:
                  type: string
                n:
                  type: integer
                random_seed:
                  type: integer
                response_format:
                  type: string
                image_format:
                  type: string
      responses:
        '200':
          description: Image variations
      tags:
      - Images
  /v1/images/explore:
    post:
      summary: Explore
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - prompt
              properties:
                prompt:
                  type: string
                model:
                  type: string
                size:
                  type: string
                response_format:
                  type: string
                controls:
                  type: object
      responses:
        '200':
          description: Exploration image
      tags:
      - Images
  /v1/images/explore/similar:
    post:
      summary: Explore similar
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - source_image_id
              - similarity
              properties:
                source_image_id:
                  type: string
                similarity:
                  type: number
                response_format:
                  type: string
      responses:
        '200':
          description: Similar image variations
      tags:
      - Images
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer token authentication using a Recraft API token.