OceanToken AI API

OceanToken AI API as documented publicly: 16 operations. Contract generated from the documentation by API Evangelist (2026-11-19); not the provider's own document.

GitHub OpenAPI

Operations 16

POST /v1/audio/speech Text to speech – Turn text into spoken audio. #
POST /v1/audio/transcriptions Transcription – Turn an audio file into text. #
POST /v1/chat/completions Chat completions – Send a conversation to a language model and get the next message back. #
POST /v1/embeddings Embeddings – Turn text into vectors for search and retrieval. #
POST /v1/images/edits Image edits – Edit an image with a prompt and an optional mask. #
POST /v1/images/generations Image generation – Generate images from a text prompt. #
POST /v1/messages Messages – Anthropic‑style messages for every chat model, streaming or not. #
GET /v1/models List models Every model your key can call, in OpenAI's list format. #
POST /v1/rerank Rerank Order a list of documents by relevance to a query. #
POST /v1/responses Responses – The stateful successor to chat completions, with built‑in tools and multi‑turn state. #
GET /v1/usage GET /v1/usage #
GET /v1/usage/{requestId} Request cost What one request cost and the tokens it used, looked up by the id of its response. #
GET /v1/videos List video jobs – Your recent video jobs and their states. #
POST /v1/videos Create a video job – Start a video generation job. #
GET /v1/videos/{videoId} Video status – The state of a video job and, once finished, where to download it. #
GET /v1/videos/{videoId}/content Video content – Download the finished video file. #

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/oceantoken-ai:oceantoken-ai-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

oceantoken-ai-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: OceanToken AI API
  version: '2026-11-19'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-19: 16 operation(s) read from 4 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; OceanToken AI has published no machine-readable contract that
    the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 1
    documentation: 15
    pages-with-code: 4
    pages-read: 4
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-19'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.oceantoken.ai/api
  - https://docs.oceantoken.ai/es/api
  - https://docs.oceantoken.ai/fr/api
  - https://docs.oceantoken.ai/ja/api
servers:
- url: https://api.oceantoken.ai/v1
paths:
  /v1/audio/speech:
    post:
      operationId: post_v1_audio_speech
      tags:
      - Audio
      summary: Text to speech – Turn text into spoken audio.
      x-source: https://docs.oceantoken.ai/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/audio/transcriptions:
    post:
      operationId: post_v1_audio_transcriptions
      tags:
      - Audio
      summary: Transcription – Turn an audio file into text.
      x-source: https://docs.oceantoken.ai/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/chat/completions:
    post:
      operationId: post_v1_chat_completions
      tags:
      - Chat
      summary: Chat completions – Send a conversation to a language model and get the next message back.
      x-source: https://docs.oceantoken.ai/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/embeddings:
    post:
      operationId: post_v1_embeddings
      tags:
      - Embeddings
      summary: Embeddings – Turn text into vectors for search and retrieval.
      x-source: https://docs.oceantoken.ai/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/images/edits:
    post:
      operationId: post_v1_images_edits
      tags:
      - Images
      summary: Image edits – Edit an image with a prompt and an optional mask.
      x-source: https://docs.oceantoken.ai/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/images/generations:
    post:
      operationId: post_v1_images_generations
      tags:
      - Images
      summary: Image generation – Generate images from a text prompt.
      x-source: https://docs.oceantoken.ai/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/messages:
    post:
      operationId: post_v1_messages
      tags:
      - Messages
      summary: Messages – Anthropic‑style messages for every chat model, streaming or not.
      x-source: https://docs.oceantoken.ai/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/models:
    get:
      operationId: get_v1_models
      tags:
      - Models
      summary: List models Every model your key can call, in OpenAI's list format.
      description: OpenAI all keys
      x-source: https://docs.oceantoken.ai/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/rerank:
    post:
      operationId: post_v1_rerank
      tags:
      - Rerank
      summary: Rerank Order a list of documents by relevance to a query.
      description: Cohere Rerank models
      x-source: https://docs.oceantoken.ai/api
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1RerankRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/responses:
    post:
      operationId: post_v1_responses
      tags:
      - Responses
      summary: Responses – The stateful successor to chat completions, with built‑in tools and multi‑turn state.
      x-source: https://docs.oceantoken.ai/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/usage:
    get:
      operationId: get_v1_usage
      tags:
      - Usage
      summary: GET /v1/usage
      x-source: https://docs.oceantoken.ai/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://api.oceantoken.ai/v1/usage/ $REQUEST_ID \\ -H \"Authorization: Bearer $OCEANTOKEN_API_KEY \" \n The answer has\
          \ id , model , cost (US dollars, four significant figures), status , usage with prompt_tokens , completion_tokens and total_tokens ,\
          \ started_at , ended_at and duration_ms . \n Use the key that made the request. With any other key the answer is 404 , so the endpoint\
          \ never confirms th"
  /v1/usage/{requestId}:
    get:
      operationId: get_v1_usage_requestId
      tags:
      - Usage
      summary: Request cost What one request cost and the tokens it used, looked up by the id of its response.
      description: OceanToken all keys
      x-source: https://docs.oceantoken.ai/api
      parameters:
      - name: requestId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1UsageRequestidResponse'
      x-evidence:
        kind: documentation
  /v1/videos:
    get:
      operationId: get_v1_videos
      tags:
      - Videos
      summary: List video jobs – Your recent video jobs and their states.
      x-source: https://docs.oceantoken.ai/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_v1_videos
      tags:
      - Videos
      summary: Create a video job – Start a video generation job.
      x-source: https://docs.oceantoken.ai/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/videos/{videoId}:
    get:
      operationId: get_v1_videos_videoId
      tags:
      - Videos
      summary: Video status – The state of a video job and, once finished, where to download it.
      x-source: https://docs.oceantoken.ai/api
      parameters:
      - name: videoId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/videos/{videoId}/content:
    get:
      operationId: get_v1_videos_videoId_content
      tags:
      - Videos
      summary: Video content – Download the finished video file.
      x-source: https://docs.oceantoken.ai/api
      parameters:
      - name: videoId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    PostV1RerankRequest:
      type: object
      properties:
        query:
          type: string
          description: The query to rank documents against.
        documents:
          type: array
          description: List of documents to be ranked.
        top_n:
          type: integer
          description: Number of top results to return.
      required:
      - query
      - documents
    GetV1UsageRequestidResponse:
      type: object
      properties:
        id:
          type: string
          description: Request identifier.
        model:
          type: string
          description: Model used for the request.
        cost:
          type: number
          description: Cost in US dollars (four significant figures).
        status:
          type: string
          description: Status of the request.
        usage:
          type: object
          description: Token usage details.
        usage.prompt_tokens:
          type: integer
          description: Number of prompt tokens.
        usage.completion_tokens:
          type: integer
          description: Number of completion tokens.
        usage.total_tokens:
          type: integer
          description: Total tokens used.
        started_at:
          type: string
          description: Timestamp when the request started.
        ended_at:
          type: string
          description: Timestamp when the request ended.
        duration_ms:
          type: integer
          description: Duration of the request in milliseconds.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Audio
- name: Chat
- name: Embeddings
- name: Images
- name: Messages
- name: Models
- name: Rerank
- name: Responses
- name: Usage
- name: Videos