Yi-34B-Chat API

The Yi series models are large language models trained from scratch by developers at 01.AI
Output

Overview

Description

Designed as a bilingual model and trained on a 3T multilingual corpus, the Yi series models rank among the top LLMs globally, excelling in language comprehension, commonsense reasoning, reading comprehension, and beyond. Try out at our AI API Playground.

What are Use Cases for Yi-34B

Yi-34B is primarily utilized for customer service chatbots and interactions, with its fine-tuned capabilities extending to technical support, educational tutoring, and creative writing support across various industries.

How does it compare to Mixtral and ChatGPT?

Yi-34B is primarily utilized for customer service chatbots and interactions, with its fine-tuned capabilities extending to technical support, educational tutoring, and creative writing support across various industries.

Tips

  • Temperature Setting: Yi-34B tends to run hot by default. It's recommended to adjust the temperature setting to around 0.5 to manage this.
  • Repetition Penalty: Set the repetition penalty between 1.1 and 1.2 to avoid repetitive outputs.
  • Minimum Probability (min_p): To control uncreative one-sentence responses, set min_p between 0.05 and 0.1.
  • Instruction Template: The model responds well to the "ChatML" instruction template.
  • Custom Stopping String: If the model outputs <s> at the end of its answers, use <s> as a custom stopping string.
  • Beginning of Sentence (bos) Token: Some Yi models perform better when the "Add the bos_token to the beginning of prompts" option is unchecked.

API Example

Use cases

  • Customer service chatbots: Powering chatbots that respond to customer inquiries and provide support.
  • Technical support: Helping users with technical problems through efficient and accurate responses.
  • Educational tutoring: Providing personalized tutoring and answering educational queries.
  • Creative writing support: Assisting in content creation, story generation, and other creative writing tasks.
  • Conversational dialogue: Engaging in multi-turn dialogue for natural and fluent interactions.
  • Language translation: Translating text between multiple languages, including Chinese and English.
  • Coding assistance: Offering code generation, explanation, and debugging help in programming languages.
  • Multilingual virtual agents: Serving global audiences with high-accuracy conversational AI across languages.
  • AI-driven knowledge systems: Building context-aware, instruction-following agents for knowledge search and data retrieval.
  • Enterprise applications: Scalable deployments for cloud, on-prem, or edge AI in customer service, content generation, and virtual agents.

How to use Yi-34B-Chat API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to .

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Yi-34B-Chat API Pricing

TypePrice
Input
Output

Yi-34B-Chat vs other models

ModelInputOutputContextBest for
Yi-34B-Chat
This page
$5 / 1M tokens
$30 / 1M tokens
1M tokens
Reasoning + agents
$2 / 1M tokens
$10 / 1M tokens
1M tokens
Balanced coding + agents
$3 / 1M tokens
$15 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows
$1.5 / 1M tokens
$9 / 1M tokens
1M tokens
Reasoning + agents

Frequently asked questions

Yes, Yi-34B-Chat can stream responses as they are generated.

Yes, Yi-34B-Chat supports both function calling and structured outputs.

Yi-34B-Chat was built by 01.AI.

Start building with Yi-34B-Chat

Get API Key
1000+ models, one API.