Recolor the Past Images API

The Images API from Recolor the Past — 5 operation(s) for images.

GitHub OpenAPI

Operations 5

GET /api/v1/images/{id}/download-url Short-lived download link for a finished photo #
POST /api/v1/images/{id}/fullres Order the full-resolution render of a preview #
POST /api/v1/images/{id}/delete Permanently delete a photo and its files #
POST /api/v1/images/{id}/reprocess Create a new free preview from a retained original with changed options #
POST /api/v1/images/{id}/cancel Stop processing, refund reserved credits and permanently delete the photo #

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/recolorthepast-com:recolorthepast-com-images-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

recolorthepast-com-images-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Recolor the Past AI tools and developer Images API
  version: 1.2.0
  description: 'Public, read-only photo guidance and archive calculators, plus the authenticated API an AI assistant or developer uses on a user''s behalf. Delegated access uses a personal API key (Authorization: Bearer rtp_live_…) or OAuth 2.1; the MCP server is at https://api.recolorthepast.com/mcp. The ChatGPT app endpoint https://api.recolorthepast.com/mcp/chatgpt processes photos using existing credits and free allowance, without purchase or subscription tools. Every credential has a user-approved monthly credit cap, and agents can only create checkout links: the user completes every payment. Setup guide: https://recolorthepast.com/en/ai'
servers:
- url: https://recolorthepast.com
  description: Public, read-only agent tools
- url: https://api.recolorthepast.com
  description: Authenticated developer API (API key or OAuth 2.1)
tags:
- name: Images
paths:
  /api/v1/images/{id}/download-url:
    servers:
    - url: https://api.recolorthepast.com
      description: Authenticated developer API (API key or OAuth 2.1)
    get:
      operationId: getDownloadUrl
      summary: Short-lived download link for a finished photo
      security:
      - apiKey: []
      - oauth2:
        - photos
      parameters:
      - name: id
        in: path
        required: true
        description: Image ID
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Signed link
          content:
            application/json:
              schema:
                type: object
                required:
                - url
                properties:
                  url:
                    type: string
                    format: uri
                  expiresIn:
                    type: integer
                    description: Seconds
        '401':
          description: Missing, invalid or revoked credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: delegated_forbidden or insufficient_scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Result not ready yet
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Images
  /api/v1/images/{id}/fullres:
    servers:
    - url: https://api.recolorthepast.com
      description: Authenticated developer API (API key or OAuth 2.1)
    post:
      operationId: upgradeToFullResolution
      summary: Order the full-resolution render of a preview
      description: Uses the settings of the preview. The first full-resolution photo per account is free; later ones spend credits.
      security:
      - apiKey: []
      - oauth2:
        - photos
      parameters:
      - name: id
        in: path
        required: true
        description: Image ID
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Already ordered
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FullResResponse'
        '201':
          description: Full-resolution job queued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FullResResponse'
        '401':
          description: Missing, invalid or revoked credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: insufficient_credits or spend_limit_reached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: delegated_forbidden or insufficient_scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Images
  /api/v1/images/{id}/delete:
    servers:
    - url: https://api.recolorthepast.com
      description: Authenticated developer API (API key or OAuth 2.1)
    post:
      operationId: deleteImage
      summary: Permanently delete a photo and its files
      security:
      - apiKey: []
      - oauth2:
        - photos
      parameters:
      - name: id
        in: path
        required: true
        description: Image ID
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    type: boolean
                    const: true
        '401':
          description: Missing, invalid or revoked credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: delegated_forbidden or insufficient_scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Images
  /api/v1/images/{id}/reprocess:
    servers:
    - url: https://api.recolorthepast.com
      description: Authenticated developer API (API key or OAuth 2.1)
    post:
      operationId: reprocessPhoto
      summary: Create a new free preview from a retained original with changed options
      security:
      - apiKey: []
      - oauth2:
        - photos
      parameters:
      - name: id
        in: path
        required: true
        description: Image ID
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JobSettings'
      responses:
        '201':
          description: Preview queued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateJobResponse'
        '401':
          description: Missing, invalid or revoked credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: preview_limit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: delegated_forbidden or insufficient_scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: already_done
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: original_expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Images
  /api/v1/images/{id}/cancel:
    servers:
    - url: https://api.recolorthepast.com
      description: Authenticated developer API (API key or OAuth 2.1)
    post:
      operationId: cancelPhoto
      summary: Stop processing, refund reserved credits and permanently delete the photo
      security:
      - apiKey: []
      - oauth2:
        - photos
      parameters:
      - name: id
        in: path
        required: true
        description: Image ID
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Work canceled and photo deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  canceled:
                    type: boolean
                  deleted:
                    type: boolean
        '401':
          description: Missing, invalid or revoked credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: delegated_forbidden or insufficient_scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Images
components:
  schemas:
    FullResResponse:
      type: object
      properties:
        jobId:
          type: string
          format: uuid
        imageId:
          type: string
          format: uuid
        status:
          $ref: '#/components/schemas/JobStatus'
        creditsCost:
          type: integer
        free:
          type: boolean
        alreadyDone:
          type: boolean
    JobStatus:
      type: string
      enum:
      - queued
      - leased
      - processing
      - succeeded
      - failed
    JobSettings:
      type: object
      description: Processing options. Omitted options are off. Options not offered at the moment return 400 feature_disabled.
      properties:
        colorize:
          type: boolean
          description: Add color to a black-and-white photo
        recolorize:
          type: boolean
          description: Refresh faded color (wins over colorize)
        enhance:
          type: boolean
          description: Denoise and sharpen
        faceRestore:
          type: boolean
          description: Improve faces
        descratch:
          type: boolean
          description: Remove scratches and cracks
        deblur:
          type: boolean
          description: Reduce blur
        redEye:
          type: boolean
          description: Fix red-eye
        deblock:
          type: boolean
          description: Remove JPEG blocks
        descreen:
          type: boolean
          description: Remove print dots
        upscale:
          type: boolean
        scale:
          type: integer
          enum:
          - 2
          - 4
        smartCrop:
          type: boolean
        aspect:
          type: string
          description: Target width:height ratio when smartCrop is enabled
        format:
          type: string
          enum:
          - jpg
          - png
          - same
          default: jpg
        quality:
          type: integer
          minimum: 1
          maximum: 100
          default: 95
      additionalProperties: true
    CreateJobResponse:
      type: object
      required:
      - jobId
      - imageId
      - mode
      - status
      - creditsCost
      properties:
        jobId:
          type: string
          format: uuid
        imageId:
          type: string
          format: uuid
        mode:
          type: string
          enum:
          - preview
          - paid
        status:
          $ref: '#/components/schemas/JobStatus'
        creditsCost:
          type: integer
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
        code:
          type: string
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: rtp_live_…
      description: Personal API key created in Account → AI assistants & API. Carries its own monthly credit cap.
    oauth2:
      type: oauth2
      description: 'OAuth 2.1 with PKCE (S256). Discovery: https://api.recolorthepast.com/.well-known/oauth-authorization-server; dynamic client registration: https://api.recolorthepast.com/oauth/register.'
      flows:
        authorizationCode:
          authorizationUrl: https://recolorthepast.com/oauth/authorize
          tokenUrl: https://api.recolorthepast.com/oauth/token
          refreshUrl: https://api.recolorthepast.com/oauth/token
          scopes:
            photos: Create, read, reprocess, cancel and organize the user's photos and processing history
            billing: Read existing purchases and invoices; general MCP clients can create checkout and billing-portal links (the user completes payment)
externalDocs:
  description: Full service and citation guide
  url: https://recolorthepast.com/llms-full.txt