Deka GPU Documentations
  • Starter Guide
    • Introduction
    • Sign Up
    • Choose a Package
    • Top Up
    • Create a Virtual Machine
    • Download kubeconfig
    • Create a Deka LLM
    • Create a Deka Notebook
    • Conclusion
  • Service Portal
    • Introduction
    • Sign Up
    • Sign In
    • Sign Out
    • Forgot Password
    • Account Setting
      • Using MFA Google Authenticator
      • Using MFA Microsoft Authenticator
    • Project
      • Add Project
      • Delete Project
    • List Roles
    • Broadcast
    • Audit Log
    • Voucher
    • Security
      • AI Security AI Infrastructure Layer
      • AI Security AI Application Layer
    • Ticket
      • Create Ticket
      • Detail Ticket
    • Billing
      • Daily Cost Estimated
      • Monthly Cost
      • Invoice
      • Summary Monthly
    • Balance
      • Project Type: SME
        • GPU Merdeka
        • Choose Package
        • Top-Up
      • Project Type: Enterprise
      • History Balance
        • Balance
        • Transaction
      • Custom Resource Definition
  • Deka GPU
    • Deka GPU: Kubernetes
      • Introduction
      • GPU Type
      • Dashboard
        • Check Status Kubernetes
        • Download Kube Config
        • Access Console
      • Workloads
        • Pods
          • Create New Pod
          • Access Console
          • Configuration Pod
          • Delete Pod
          • How to Create a New Pod use CLI
        • Deployments
          • Create New Deployment
          • Configuring Deployment
          • Delete of a Deployment
          • How to Create a New Deployment use CLI
        • DaemonSets
          • Create a New DaemonSet
          • Configuring a DaemonSet
          • Delete DaemonSet
      • Services
      • Storages
        • Storage Class
        • Persistent Volume Claims
          • Create a New Persistent Volume Claim
          • How to Create a New Persistent Volume Claim use CLI
    • Deka GPU: VMs
      • Operating System
      • GPU Type
      • Machine Type
      • Namespace Type
      • Storage Class
      • How to Create a Virtual Machine on Service Portal
      • How to Manually Create a Virtual Machine
        • Download Kube Config
        • Running Kube Config
        • Configuration file dv.yaml
        • Configuration file vm.yaml
        • Configuration file svc.yaml
      • Feature Overview of Virtual Machine
        • Detail a Virtual Machine
        • Open Console
        • Turn Off a VM Instance
        • Turn On a VM Instance
        • Restart a Virtual Machine
        • How to Access Console
        • Show YAML File
      • Delete a Virtual Machine
    • Deka GPU: Registry
      • Create Registry
      • Quota
      • Detail Registry
        • Summary
        • Repository
        • Logs
        • Labels
        • Tag Immutability
        • Member
        • Resize Storage Registry
      • Delete Registry
    • Deka GPU: Security
      • Deka Guard
        • Introduction
        • Create Guard to Deny All Ingress
        • Create Guard to Allow Ingress
        • Create Guard to Allow Ingress with port
        • Create Guard to Allow Ingress with IP/CIDR
        • Create Guard to Deny All Egress
        • Create Guard to Allow Egress
        • Create guard to Allow Egress with Port
        • Create Guard to Allow Egress with IP/CIDR
    • Deka GPU: Service
      • Ingress
        • Install Ingress nginx
        • Install Cert Manager
        • Create Cluster Issuer
        • Create Ingress with TLS
    • Deka GPU: Autoscaling
      • Basic Autoscaling
    • Deka GPU: Network
      • Deka VPC
    • Deka GPU: MLOps
      • Introduction
      • Notebook
      • Tensorboards
      • Volumes
      • Endpoints
        • Create Endpoint
        • Delete Endpoint
      • Experiments (AutoML)
        • Create Experiments (AutoML)
        • Create Experiments (AutoML) using Python SDK
        • Get Experiments Results
      • Experiments (KFP)
        • Create Experiment
      • Pipelines
      • Runs
        • Create Run
        • Delete Active Run
      • Recurring Runs
        • Create Recurring Run
        • Delete Recurring Runs
        • Home
      • Artifacts
      • Executions
      • Manage Contributors
  • Deka LLM
    • Introduction
    • Check Project Type
    • Create a New LLM
    • Detail Deka LLM
      • Overview Tab
      • Keys Tab
        • Create a New Key
        • Detail a Key
        • Edit a Key
        • Get a Secret Key
        • Delete a Key
      • Usage Tab
      • Top Up Coin
    • API Deka LLM
      • Model Management
      • Completions
      • Embedding
    • Delete Deka LLM
    • How to Create Simple Prompt with Deka LLM
      • Create Deka LLM
      • Get URL API Deka LLM
      • Get Secret Key
      • Access API Deka LLM using Postman
      • Get Model
      • Post Chat Completions
  • Deka Notebook
    • Introduction
    • Namespace Type
    • Create a New Notebook
    • Detail Deka Notebook
      • Configuration Deka Notebook
      • Start Deka Notebook Service
      • Stop Deka Notebook Service
      • Get Token
      • Login Deka Notebook
      • Logout Deka Notebook
    • Delete Deka Notebook
  • Reference
    • How to use kubeconfig on Linux
    • How to use kubeconfig on Windows
    • Kubernetes Commands for Enhancing Security
    • How to add GPU in Kubernetes
    • How to Add GPU in VM
      • Download kubeconfig
      • Install kubectl
      • Add GPU
      • Install Driver NVIDIA
    • RAPIDS
      • How to Setup RAPIDS
      • How to make Custom Image
    • How to push image with Docker
    • Deployment LLaMA 3.1 70B with VLLM on Kubernetes
      • Getting the Hugging Face API Key
      • Requesting Access to the LLaMA Model
      • Connect Kubernetes on Computer
      • Create Namespace
      • Create PersistentVolumeClaim (PVC)
      • Create Secret for Hugging Face Token
      • Create Deployment
      • Create Service
      • Verify Deployment
      • Accessing the LLaMA Service
      • Troubleshooting
    • How to Get an API Key on NGC
    • Deployment LLM with Deka GPU + NIM
    • Deployment Deepseek R1 70B with VLLM on Deka GPU's Kubernetes
      • Prerequisites
      • Create Namespace
      • Create PersistentVolumeClaim (PVC)
      • Create Deployment
      • Create Service
      • Verify Deployment
      • Accessing the Deepsek Service
      • Troubleshooting
    • How to Upload and Download on FTP Web
  • Troubleshooting
    • Reinstall Driver NVIDIA on Linux
    • NVIDIA Driver Not Detected After Upgrade Kernel
Powered by GitBook
On this page
  1. Deka LLM
  2. How to Create Simple Prompt with Deka LLM

Post Chat Completions

PreviousGet ModelNextIntroduction

Last updated 2 months ago

After successfully ensuring that the selected model matches the one chosen when creating Deka LLM in the Deka GPU Service Portal, the next step is to send a request to based on your input. In the Deka LLM API imported into Postman, select Chat Completions.

Completions

In the Authorization tab, select Auth Type: Bearer Token and enter the Secret Key obtained from section in the Token field.

Authentication

In the Body tab, select raw.

Copy the following syntax into the raw input field.

{
    "model": "qwen/qwen2-vl-72b-instruct", 
    "messages": [
        {
            "role": "system",
            "content": "You are a story teller"
        },
        {
            "role": "user",
            "content": "Write a poem about Frodo's journey"
        }
    ],
    "stream": false,
    "temperature": 0.9,
    "top_p": 1
}

Explanation of the syntax.

"model": "qwen/qwen2-vl-72b-instruct", 
    "messages": [
        {
            "role": "system",
            "content": "You are a story teller"
        },
        {
            "role": "user",
            "content": "Write a poem about Frodo's journey"
        }
    ], 

This section contains a list of messages in the LLM conversation, providing context to the model by setting its role and including your instructions.

Click the Send button to get the response generated by LLM based on your input.

You will then receive a response like this.

The response content will be similar to the following.

{
    "id": "d0029aca5f9d49b58ca53cfcc962adf1",
    "choices": [
        {
            "finish_reason": "stop",
            "index": 0,
            "message": {
                "content": "Frodo's journey was a long one,\nThrough trials and through pain,\nBut he had courage in his heart,\nAnd he held on through the rain.\n\nHe walked alone across the lands,\nHis feet sore, his heart beating,\nBut he never lost his way,\nAnd he never stopped believing.\n\nHe faced the dark and the darkness,\nWith a light that dimly glowed,\nAnd he kept on pushing forward,\nWith a determination he'd never showed.\n\nThrough fire and through water,\nThrough the shadows and the night,\nHe kept on walking, step by step,\nAnd he never lost sight.\n\nHe faced the Ring and its power,\nWith a heart full of fear,\nBut he summoned up the strength,\nAnd he resisted its lure with cheer.\n\nAnd in the end, he reached his goal,\nThe fire where the Ring belong,\nAnd he threw it into the flame,\nAnd his journey was finally gone.\n\nSo here's to Frodo, brave and true,\nA hero to the end,\nHis journey was a long one,\nBut it's one that will never end.",
                "role": "assistant",
                "tool_calls": null,
                "function_call": null
            }
        }
    ],
    "created": 1740291974,
    "model": "Qwen/Qwen2-VL-72B-Instruct",
    "object": "chat.completion",
    "system_fingerprint": null,
    "usage": {
        "completion_tokens": 216,
        "prompt_tokens": 28,
        "total_tokens": 244,
        "completion_tokens_details": null,
        "prompt_tokens_details": null
    },
    "service_tier": null
}

In the {{baseurl}} field, replace it with the Deka LLM API URL . Then, remove ?model=<string> from the request URL.

Get Model
Tab Body

This field specifies the model to be used. Ensure it matches the model selected as per section .

Replace Syntax
Send Response
Response Chat Completions
https://dekallm.cloudeka.ai/
Get Model
https://dekallm.cloudeka.ai/v1/chat/completions
Get Secret Key
Page cover image