# Using T5-Base via Inference API

**URL:** <https://discuss.huggingface.co/t/using-t5-base-via-inference-api/8557>\
**Category:** Models\
**Created:** [July 21, 2021, 3:46pm UTC](https://discuss.huggingface.co/t/using-t5-base-via-inference-api/8557 "2021-07-21T15:46:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohsenalam](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@mohsenalam](https://discuss.huggingface.co/u/mohsenalam)\
**Post date:** [July 21, 2021, 3:46pm UTC](https://discuss.huggingface.co/t/using-t5-base-via-inference-api/8557/1 "2021-07-21T15:46:20Z")

</div>

Hi,

I’m trying to use T5-base model for summarization task using Inference API. I added the T5-specific prefix "summarize: " to the text. However, the model is returning translation\_text as output instead of summary\_text.  
(I was able to use t5-base model for summarization using a model and tokenizer as described here: [Summary of the tasks — transformers 4.7.0 documentation](https://huggingface.co/transformers/task_summary.html#summarization))

---

<div class="post-metadata">

**Author:** ![pierreguillou](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pierreguillou/32/19626_2.png) [@pierreguillou](https://discuss.huggingface.co/u/pierreguillou)\
**Post date:** [November 17, 2021, 6:40pm UTC](https://discuss.huggingface.co/t/using-t5-base-via-inference-api/8557/2 "2021-11-17T18:40:16Z")

</div>

Hello @mohsenalam. Did you solve your issue?  
On my side, I would like to use Inferenec API for T5 base as well.  
I opened this thread: [How to get Accelerated Inference API for T5 models?](https://discuss.huggingface.co/t/how-to-get-accelerated-inference-api-for-t5-models/11972)
