Choose a specialized API or foundation model
Compare task fit, quality, latency and availability before committing to a model.
Choose a specialized API or foundation model
Work through the decision
A catalog team needs fields from supplier invoices, translated descriptions and short promotional videos. Would one generative endpoint serve all three well?
Check your reasoning
Measure each task separately. Test a Document AI processor on the invoices, Translation on approved descriptions, and a video-generation model such as Veo on creative briefs. Use Model Garden to check input and output types, supported regions, access terms and deployment choices. Imagen is a candidate for still images.
Compare the choices
- Document AI processor
- Use a suitable managed processor for document structure and fields. Evaluate exactness and review cost on representative forms.
- Cloud Translation
- Use a managed translation service for text language conversion, with glossaries where supported for consistent terminology.
- Model Garden evaluation
- Compare candidate models on real inputs, required modalities, deployment options, regional availability and usage terms.
- Latency and cost benchmark
- Measure representative lengths, concurrency, error rates and tail latency alongside cost per acceptable result. Test fallbacks under quota or availability constraints.
Test the decision
If a hosted Gemini model meets the quality target on simple requests, measure p95 latency and cost per accepted answer at expected concurrency. Route more difficult cases to a larger model only after testing that policy. Consider supervised tuning for a stable behavior with enough labeled examples.
Practice the guide skills
- Compare two Model Garden candidates on supported modalities, hosting responsibility, licensing and a fixed set of representative requests. Watch 13:07
- Choose between Document AI, Vision and Translation for invoice fields, image labels and multilingual product descriptions. Specify a quality check for each. Watch 17:06
- Match Imagen, Veo and Gemini to still images, video and text reasoning. Decide whether managed inference or supervised tuning suits a stable output-format requirement. Watch 18:33
- Set a p95 deadline, minimum quality and maximum cost per accepted answer. Compare two Gemini deployments under steady load and a quota-limited burst. Watch 19:11
Official objectives for this lesson
Related lesson · Choose a model family by the deliverable
Choose a specialized API or foundation model quiz
Answer 3 questions. Check each answer for an explanation.