Cohere Embed Input Too Long or Too Many Texts Error

Share
Workaround available API Updated November 14, 2026Based on 3 user reportsHow we research

Quick answer

Embed accepts at most 96 texts per call, and inputs over the model's token limit either get truncated or fail depending on the truncate setting.

Most likely fix: Batch your inputs

How to fix it

Try these in order — the most common fix is first.

  1. 1. Batch your inputs

    1. Split your list into chunks of 96 or fewer
    2. Send each chunk and concatenate the embeddings in order
    Did this fix it?
  2. 2. Set truncate deliberately

    1. truncate defaults to END (drops the end of long text)
    2. Use START to drop the beginning instead
    3. NONE returns an error on over-length input, useful to detect it
    Did this fix it?
  3. 3. Chunk long documents

    1. Split text into passages before embedding
    2. Embed each passage with input_type search_document
    3. Use input_type search_query for queries
    Did this fix it?

Symptoms

Embed returns a 400 or 422 error about input size or token count, or results look cut off.

Why it happens

  • More than 96 texts in one request
  • Input longer than the model's max token length with truncate set to NONE
  • Missing input_type on v3 and newer models
  • Wrong embedding_types value for older models

This guide also covers

  • cohere embed too many tokens
  • cohere embed 96 texts
  • cohere embed truncate
  • cohere embed input_type

Still not working?

If Cohere keeps failing, you're not alone. See every Cohere problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other Cohere errors