NetMind Power Documentation
  • NetMind Account
  • Inference
    • Model APIs
    • Dedicated Endpoints
  • Fine-tuning
  • Rent GPUs
    • Cloud Sync
    • Use Ngrok as Ingress Service
  • Rent Cluster (Comming soon)
  • API
    • API token
    • Files
    • Fine-tuning
      • List Models
      • Preparing your dataset
      • Create Job
      • Retrieve job
      • Download model
      • Cancel job
      • Deploy Checkpoint (coming soon)
    • Inference
      • Chat
      • Images
      • Haiper Inference
      • Asynchronous Inference
      • Dedicated Endpoints
      • Batch Processing
      • Embedding API
      • Deprecated Models
    • Rent GPU
      • SSH Authentication
      • List Available images
      • List Available GPU Instances
      • Create Your First Environment
      • Stop GPU instace
    • API Reference
      • Files
      • Fine-tuning
      • Rent GPU
Powered by GitBook
On this page

Was this helpful?

  1. API
  2. API Reference

Files

PreviousAPI ReferenceNextFine-tuning

Last updated 5 months ago

Was this helpful?

List Files

get
Header parameters
AuthorizationstringRequired

Your API token

Responses
200
Successful Response
application/json
get
GET /v1/files HTTP/1.1
Host: api.netmind.ai
Authorization: text
Accept: */*
200

Successful Response

[
  {
    "id": "text",
    "file_name": "text",
    "purpose": "fine-tune",
    "created_at": 1
  }
]

Get File

get
Path parameters
file_idstringRequired
Header parameters
AuthorizationstringRequired

Your API token

Responses
200
Successful Response
application/json
404
Not Found
422
Validation Error
application/json
get
GET /v1/files/{file_id} HTTP/1.1
Host: api.netmind.ai
Authorization: text
Accept: */*
{
  "id": "text",
  "file_name": "text",
  "purpose": "fine-tune",
  "created_at": 1
}

Delete File

delete
Path parameters
file_idstringRequired
Header parameters
AuthorizationstringRequired

Your API token

Responses
200
Successful Response
application/json
Responseany
404
Not Found
422
Validation Error
application/json
delete
DELETE /v1/files/{file_id} HTTP/1.1
Host: api.netmind.ai
Authorization: text
Accept: */*

No content

Get Presigned Url

get
Path parameters
file_idstringRequired
Header parameters
AuthorizationstringRequired

Your API token

Responses
200
Successful Response
application/json
404
Not Found
422
Validation Error
application/json
get
GET /v1/files/{file_id}/presigned_url HTTP/1.1
Host: api.netmind.ai
Authorization: text
Accept: */*
{
  "presigned_url": "https://example.com"
}
  • GET List Public Files
  • POSTCreate
  • GETList Files
  • GETGet File
  • DELETEDelete File
  • GETGet Presigned Url

List Public Files

get
Responses
200
Successful Response
application/json
get
GET /v1/public-files HTTP/1.1
Host: api.netmind.ai
Accept: */*
200

Successful Response

[
  {
    "id": "text",
    "file_name": "text",
    "purpose": "fine-tune",
    "created_at": 1,
    "token": 1,
    "length": 1,
    "bytes": 1,
    "description": ""
  }
]

Create

post
Header parameters
AuthorizationstringRequired

Your API token

Body
file_namestringRequired
purposestring · enumRequiredPossible values:
Responses
200
Successful Response
application/json
422
Validation Error
application/json
post
POST /v1/files HTTP/1.1
Host: api.netmind.ai
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 42

{
  "file_name": "text",
  "purpose": "fine-tune"
}
{
  "id": "text",
  "presigned_url": "https://example.com"
}