# How to fine tune model for image caption generation...?

**URL:** <https://discuss.ai.google.dev/t/how-to-fine-tune-model-for-image-caption-generation/40843>\
**Category:** Google AI Studio\
**Tags:** models, api, fine-tuning\
**Created:** [September 28, 2024, 1:35pm UTC](https://discuss.ai.google.dev/t/how-to-fine-tune-model-for-image-caption-generation/40843 "2024-09-28T13:35:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swapnil\_Mane](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/swapnil_mane/32/25116_2.png) [@Swapnil\_Mane](https://discuss.ai.google.dev/u/Swapnil_Mane)\
**Post date:** [September 28, 2024, 1:35pm UTC](https://discuss.ai.google.dev/t/how-to-fine-tune-model-for-image-caption-generation/40843/1 "2024-09-28T13:35:23Z")

</div>

I am building caption generator app using Gemini ai but I don’t understand how to fine tune model to response only in json. ?

---

<div class="post-metadata">

**Author:** ![afirstenberg](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/afirstenberg/32/202_2.png) [@afirstenberg](https://discuss.ai.google.dev/u/afirstenberg)\
**Post date:** [September 28, 2024, 4:24pm UTC](https://discuss.ai.google.dev/t/how-to-fine-tune-model-for-image-caption-generation/40843/2 "2024-09-28T16:24:04Z")

</div>

Welcome to the forums!

You don’t show us the code you’ve tried, so it is difficult to give details, but in general you want to use [structured output](https://ai.google.dev/gemini-api/docs/structured-output) to format the results.

---

<div class="post-metadata">

**Author:** ![GUNAND\_MAYANGLAMBAM](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/gunand_mayanglambam/32/4964_2.png) [@GUNAND\_MAYANGLAMBAM](https://discuss.ai.google.dev/u/GUNAND_MAYANGLAMBAM)\
**Post date:** [September 30, 2024, 7:20am UTC](https://discuss.ai.google.dev/t/how-to-fine-tune-model-for-image-caption-generation/40843/4 "2024-09-30T07:20:54Z")

</div>

@Swapnil_Mane

Currently, Gemini API supports finetuning for only text input and output. And also once you finetune the model, JSON mode is not supported.

---

<div class="post-metadata">

**Author:** ![system](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/system/32/1_2.png) [@system](https://discuss.ai.google.dev/u/system)\
**Post date:** [November 5, 2026, 6:17pm UTC](https://discuss.ai.google.dev/t/how-to-fine-tune-model-for-image-caption-generation/40843/6 "2026-11-05T18:17:50Z")

</div>

Closed on November 5, 2026, 6:17pm UTC

This thread was automatically closed 60 days after the last reply. If you are running into an issue, please create a new post.
