text-bison

POST {{baseUrl}}/projects/{{projectId}}/locations/{{locationId}}/publishers/google/models/:model_id_action

Request Body

{"instances"=>[{"prompt"=>"Give me ten interview questions for the role of AI engineer."}]}

RESPONSES

status: OK

{"predictions":[{"content":" 1. **Tell me about your experience in developing and deploying AI models.**\n\n2. **What are your strengths and weaknesses as an AI engineer?**\n\n3. **What are your thoughts on the future of AI?**\n\n4. **What are some of the challenges you've faced in your previous roles as an AI engineer?**\n\n5. **How do you stay up-to-date on the latest advancements in AI?**\n\n6. **What are your thoughts on the ethical implications of AI?**\n\n7. **How do you handle working with large datasets?**\n\n8. **What are your thoughts on the importance of explainability in AI models?**\n\n9. **How do you measure the success of an AI model?**\n\n10. **What are your salary expectations for this role?**","safetyAttributes":{"categories":["Finance","Insult","Profanity"],"safetyRatings":[{"severityScore":0.1,"severity":"NEGLIGIBLE","category":"Dangerous Content","probabilityScore":0},{"severityScore":0,"severity":"NEGLIGIBLE","probabilityScore":0.1,"category":"Harassment"},{"probabilityScore":0,"category":"Hate Speech","severityScore":0.1,"severity":"NEGLIGIBLE"},{"category":"Sexually Explicit","severityScore":0.1,"severity":"NEGLIGIBLE","probabilityScore":0}],"scores":[0.7,0.1,0.1],"blocked":false},"citationMetadata":{"citations":[]}}],"metadata":{"tokenMetadata":{"outputTokenCount":{"totalBillableCharacters":549,"totalTokens":172},"inputTokenCount":{"totalBillableCharacters":50,"totalTokens":12}}}}