Vercel Chats API

AI-powered app generation via chat sessions

Operations 3

POST /v1/chat Create Chat #
POST /v1/chat/{chatId} Continue Chat #
GET /v1/chat/{chatId} Get Chat #

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/vercel-chats-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 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. See our Privacy Policy and Terms.

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

OpenAPI Specification

vercel-chats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Vercel v0 Platform Chats API
  description: The v0 Platform API provides programmatic access to v0's AI-powered app generation pipeline. It is a REST interface wrapping v0's full code generation lifecycle from prompt to project to code files to deployment. Capabilities include generating full-stack web apps from natural language prompts, structured parsing of generated code, automatic error fixing, and linking with rendered previews. Requires a v0 API key and a Premium or Team plan.
  version: 1.0.0
  contact:
    name: Vercel Support
    url: https://vercel.com/help
  termsOfService: https://vercel.com/legal/terms
servers:
- url: https://v0.dev/api
  description: v0 Platform API
security:
- BearerAuth: []
tags:
- name: Chats
  description: AI-powered app generation via chat sessions
paths:
  /v1/chat:
    post:
      operationId: createChat
      summary: Create Chat
      description: Start a new v0 chat session to generate a web application from a natural language prompt. Returns generated code, a preview URL, and project details.
      tags:
      - Chats
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateChatRequest'
      responses:
        '200':
          description: Chat response with generated code and preview
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
  /v1/chat/{chatId}:
    post:
      operationId: continueChat
      summary: Continue Chat
      description: Continue an existing v0 chat session with a follow-up message to iterate on the generated application.
      tags:
      - Chats
      parameters:
      - name: chatId
        in: path
        required: true
        description: Existing chat session ID
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContinueChatRequest'
      responses:
        '200':
          description: Updated chat response with revised code
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    get:
      operationId: getChat
      summary: Get Chat
      description: Returns details and generated code for an existing v0 chat session.
      tags:
      - Chats
      parameters:
      - name: chatId
        in: path
        required: true
        description: Chat session ID
        schema:
          type: string
      responses:
        '200':
          description: Chat details and generated code
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            code:
              type: string
    ContinueChatRequest:
      type: object
      required:
      - message
      properties:
        message:
          type: string
          description: Follow-up instruction or refinement request
          example: Add dark mode support and mobile responsive layout
    CreateChatRequest:
      type: object
      required:
      - message
      properties:
        message:
          type: string
          description: Natural language prompt describing the app to generate
          example: Build a todo app with Next.js and Tailwind CSS with local storage persistence
        system:
          type: string
          description: Optional system instructions to guide code generation
        modelConfiguration:
          type: object
          description: Model configuration options
          properties:
            model:
              type: string
              description: AI model to use for generation
    GeneratedFile:
      type: object
      properties:
        path:
          type: string
          description: File path within the project (e.g., 'app/page.tsx')
        content:
          type: string
          description: File content (source code)
        language:
          type: string
          description: Programming language or file type
    ChatResponse:
      type: object
      properties:
        id:
          type: string
          description: Chat session unique identifier
        url:
          type: string
          format: uri
          description: URL to the v0 chat in the browser
        previewUrl:
          type: string
          format: uri
          description: URL to the rendered preview of the generated app
        files:
          type: array
          items:
            $ref: '#/components/schemas/GeneratedFile'
          description: Generated code files
        title:
          type: string
          description: Auto-generated title for the chat
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  responses:
    NotFound:
      description: Chat session not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PaymentRequired:
      description: Premium or Team plan required
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimitExceeded:
      description: API rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: v0 API key (V0_API_KEY from v0.app settings)