v0 API returns 404 not_found_error with valid project ID and API key

Problem

Trying to setup v0 as an API provider in Kilo Code. Not sure why I cannot connect. Getting 404. I have a premium v0 account with $20 in credits. Trying this as a test.

API Configuration

Correct API Format (from v0 docs):

POST https://api.v0.dev/v1/{projectId}/messages
Headers:
  Content-Type: application/json
  x-api-key: {key}
Body:
  {
    "prompt": "Hello, say test",
    "model": "v0-1.0-md"
  }

Test Result

Test result with provided key:

  • Project ID: vc1AzC75fnpYUxLsqE1lmgDf
  • Key: mykey
  • Response:
{
  "error": {
    "type": "not_found_error",
    "message": "Not Found"
  }
}

Summary

  • :white_check_mark: Server reachable (no network error)
  • :white_check_mark: Correct endpoint accepts requests
  • :cross_mark: Project/key combination not found (404 Not Found)

The API key/project ID appears invalid or inactive for the v0 platform. The connection to the server works, but authentication failed for this specific credential.

Just upgraded 30 min ago. Logged out and in. Created a new key for this. Any advice is appreciated.

1 Like

I am trying to use the v0 API but I keep receiving a 404 error.

Error: not_found_error (404)

I have tried with different browsers and different networks, but the error still appears even with a valid project ID and API key.

2 Likes

@roblenderman-7762 see this thread

@v1nc3nt78 see this thread

1 Like