FLAN-T5 Base

FLAN_T5_BASE

Follows a short instruction: summarise, answer, translate or classify a text with FLAN-T5 base on the CPU.

Text Generation

About FLAN-T5 Base

Follows a short instruction and returns the generated text. Typical instructions ask the model to summarise a passage, answer a question, translate a sentence, or classify a text.

The weights are google/flan-t5-base at revision 7bcac572ce56db69c1ea7c8af255c5d7c9672fc2, published by Google. FLAN-T5 is an instruction-tuned T5 model from Google Research (Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Yunxuan Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, Albert Webson, Shixiang Shane Gu, Zhuyun Dai, Mirac Suzgun, Xinyun Chen, Aakanksha Chowdhery, Alex Castro-Ros, Marie Pellat, Kevin Robinson, Dasha Valter, Sharan Narang, Gaurav Mishra, Adams Yu, Vincent Zhao, Yanping Huang, Andrew Dai, Hongkun Yu, Slav Petrov, Ed H. Chi, Jeff Dean, Jacob Devlin, Adam Roberts, Denny Zhou, Quoc V. Le and Jason Wei). The model card states the licence as Apache-2.0: https://huggingface.co/google/flan-t5-base. The weights file model.safetensors is 990,345,061 bytes and is public.

Limits

One short instruction per request. The 2000-character cap and the 256-token generation cap keep a single request small enough for a CPU run. The model can be wrong, incomplete or biased, and it does not browse or use tools. Empty text is still passed to the model. The model runs on CPU.

FLAN-T5 Base inputs and output

NameTypeRequiredDefaultDetails
prompttextYes—Instruction to follow: summarise, answer, translate or classify a short text.
Max 2000 characters
max_new_tokensintegerNo64Maximum number of new tokens to generate.
1–256

Output. Returns plain text.

Run FLAN-T5 Base with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=FLAN_T5_BASE" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "example",
    "max_new_tokens": 64
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "FLAN_T5_BASE",
        {
          "prompt": "example",
          "max_new_tokens": 64
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

FLAN-T5 Base pricing

Price per request: 0.02185 credits ($0.0002185). The price is shown again before every run; all prices are on the pricing page.

Gemma 4 E2B: Text Generation model on Kainguru
Text Generation

Gemma 4 E2B

Small multimodal language model that takes text, image, audio and video input.

Fine-tunable
DeepSeek-R1 Distill Llama 8B: Text Generation model on Kainguru
Text Generation

DeepSeek-R1 Distill Llama 8B

Reasoning model that shows its chain of thought before answering, distilled into a Llama 8B base.

Fine-tunable
Qwen 2.5 7B Instruct: Text Generation model on Kainguru
Text Generation

Qwen 2.5 7B Instruct

Multilingual instruction-following chat model you can call by API or fine-tune on your own data.

Fine-tunable
Llama 3.1 8B Instruct: Text Generation model on Kainguru
Text Generation

Llama 3.1 8B Instruct

High-quality open-weight instruction-following chat model, ready to call or fine-tune.

Fine-tunable
DeepSeek-R1-0528 Qwen3 8B: Text Generation model on Kainguru
Text Generation

DeepSeek-R1-0528 Qwen3 8B

DeepSeek-R1-0528 Qwen3 8B, a reasoning model for maths, code and science that works through a problem step by step…

Fine-tunable
Gemma 4 12B IT: Text Generation model on Kainguru
Text Generation

Gemma 4 12B IT

Google Gemma 4 12B, a multilingual assistant for chat, writing, code and maths in over 140 languages, that can reason…

Fine-tunable