Gemini API Integration Expert Needed

Gemini API Integration Expert Needed

Gemini API Integration Expert Needed

Job Overview

Location
Worldwide
Job Type
Freelancer.com
Salary
$1,950 - $5,850 Project
Date Posted
2 days ago

Additional Details

Job ID
34298
Job Views
11

Job Description

using System; using [login to view URL]; using [login to view URL]; using UnityEngine; using [login to view URL]; public class GeminiService : MonoBehaviour { private string apiKey = "YOUR_GEMINI_API_KEY"; // أدخل مفتاح API الخاص بك هنا private string apiUrl = "[login to view URL]:generateContent?key="; [Serializable] private class GeminiRequest { public Content[] contents; } [Serializable] private class Content { public Part[] parts; } [Serializable] private class Part { public string text; } public IEnumerator SendPrompt(string userPrompt, Action callback) { string fullUrl = apiUrl + apiKey; GeminiRequest requestData = new GeminiRequest { contents = new Content[] { new Content { parts = new Part[] { new Part { text = userPrompt } } } } }; string jsonPayload = [login to view URL](requestData); byte[] bodyRaw = [login to view URL](jsonPayload); using (UnityWebRequest request = new UnityWebRequest(fullUrl, "POST")) { [login to view URL] = new UploadHandlerRaw(bodyRaw); [login to view URL] = new DownloadHandlerBuffer(); [login to view URL]("Content-Type", "application/json"); yield return [login to view URL](); if ([login to view URL] == [login to view URL]) { callback?.Invoke([login to view URL]); } else { callback?.Invoke("خطأ في الاتصال بـ Gemini: " + [login to view URL]); } } } } --- 來源:Freelancer.com | 出價次數:42 | 剩餘時間:6 日 | 專案類型:固定預算

常見問題 FAQ

點樣申請呢份工?

請點擊頁面上嘅「立即申請」按鈕,或者按照聯絡資料聯絡僱主。

申請後幾耐有回覆?

回覆時間視乎僱主,一般 1-2 星期內會有面試邀請。

呢份工係唔係真實㗎?

EZJobs 上嘅所有職位都經過審核,確保真實有效。

Location

🌍

🌍 Remote · Worldwide

This is a freelance project open to candidates worldwide — work remotely from anywhere.

Work Mode:Freelance

Similar Jobs

Freehunter
Freehunter

Cookies

This website uses cookies to ensure you get the best experience on our website.

Accept