Skip to main content

Quick Start

Get started with Nomic in under 2 minutes:
from portkey_ai import Portkey

# 1. Install: pip install portkey-ai
# 2. Add @nomic provider in model catalog
# 3. Use it:

portkey = Portkey(api_key="PORTKEY_API_KEY")

response = portkey.chat.completions.create(
    model="@nomic/nomic-embed-text-v1.5",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)

Add Provider in Model Catalog

Before making requests, add Nomic to your Model Catalog:
  1. Go to Model Catalog → Add Provider
  2. Select Nomic
  3. Enter your Nomic API key
  4. Name your provider (e.g., nomic)

Complete Setup Guide

See all setup options and detailed configuration instructions

Supported Models

Nomic is known for their high-quality embedding models:
ModelContext LengthDescription
nomic-embed-text-v1.58,192 tokensLatest high-performance embedding model
nomic-embed-text-v18,192 tokensPrevious generation embedding model
Check Nomic’s documentation for more details.

Next Steps

For complete SDK documentation:

SDK Reference

Complete Portkey SDK documentation