Authentication
Set yourV0_API_KEY environment variable. You can create an API key on v0.dev.
Example
UseV0 with your Agent. The following example assumes you have the V0 Python class (as you provided) located at agno/models/vercel.py.
View more examples here.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
id | str | "v0" | The id of the Vercel v0 model to use |
name | str | "V0" | The name of the model |
provider | str | "Vercel" | The provider of the model |
api_key | Optional[str] | None | The API key for Vercel v0 (defaults to V0_API_KEY env var) |
base_url | str | "https://api.v0.dev/v1" | The base URL for the Vercel v0 API |