File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2638,6 +2638,8 @@ paths:
26382638
26392639
26402640 /v2/gen-ai/custom_models/{uuid} :
2641+ get :
2642+ $ref : ' resources/gen-ai/genai_get_custom_model.yml'
26412643 delete :
26422644 $ref : ' resources/gen-ai/genai_delete_custom_model.yml'
26432645
Original file line number Diff line number Diff line change @@ -3694,6 +3694,12 @@ apiGetCustomModelOutput:
36943694 model :
36953695 $ref : ' #/apiCustomModel'
36963696 type : object
3697+ apiGetCustomModelOutputPublic :
3698+ description : Response containing a single custom model (public)
3699+ properties :
3700+ model :
3701+ $ref : ' #/apiCustomModel'
3702+ type : object
36973703apiGetCustomModelStorageOutput :
36983704 description : Response containing custom model storage details
36993705 properties :
Original file line number Diff line number Diff line change 1+ lang : cURL
2+ source : |-
3+ curl -X GET \
4+ -H "Content-Type: application/json" \
5+ -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
6+ "https://api.digitalocean.com/v2/gen-ai/custom_models/11f13e07-1e4f-1325-b542-ca68c578b04b"
Original file line number Diff line number Diff line change 1+ description : To retrieve details of a custom model, send a GET request to `/v2/gen-ai/custom_models/{uuid}`.
2+ operationId : genai_get_custom_model
3+ parameters :
4+ - description : UUID of the custom model to retrieve
5+ example : ' "123e4567-e89b-12d3-a456-426614174000"'
6+ in : path
7+ name : uuid
8+ required : true
9+ schema :
10+ type : string
11+ responses :
12+ " 200 " :
13+ content :
14+ application/json :
15+ schema :
16+ $ref : ./definitions.yml#/apiGetCustomModelOutputPublic
17+ description : A successful response.
18+ headers :
19+ ratelimit-limit :
20+ $ref : ../../shared/headers.yml#/ratelimit-limit
21+ ratelimit-remaining :
22+ $ref : ../../shared/headers.yml#/ratelimit-remaining
23+ ratelimit-reset :
24+ $ref : ../../shared/headers.yml#/ratelimit-reset
25+ " 401 " :
26+ $ref : ../../shared/responses/unauthorized.yml
27+ " 404 " :
28+ $ref : ../../shared/responses/not_found.yml
29+ " 429 " :
30+ $ref : ../../shared/responses/too_many_requests.yml
31+ " 500 " :
32+ $ref : ../../shared/responses/server_error.yml
33+ default :
34+ $ref : ../../shared/responses/unexpected_error.yml
35+ security :
36+ - bearer_auth :
37+ - genai:read
38+ summary : Get Custom Model
39+ tags :
40+ - GradientAI Platform
41+ x-codeSamples :
42+ - $ref : examples/curl/genai_get_custom_model.yml
You can’t perform that action at this time.
0 commit comments